diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eea54cb..d0c87f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install dependencies run: npm ci @@ -21,6 +21,15 @@ jobs: - name: Check code style (aborts if errors found) run: npx @sasjs/cli lint + - name: Ensure all.sas is always up to date + run: | + git config user.name github-actions + git config user.email github-actions@github.com + python3 build.py + git add all.sas + git commit -m "chore: updating all.sas" + git push + - name: Write VPN Files run: | echo "$CA_CRT" > .github/vpn/ca.crt @@ -52,7 +61,7 @@ jobs: echo "REFRESH_TOKEN=${{secrets.SAS9_4GL_IO_REFRESH_TOKEN}}" >> .env.server - name: Semantic Release - uses: cycjimmy/semantic-release-action@v3 + uses: cycjimmy/semantic-release-action@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}