chore: update GitHub Actions workflow and release config for improved… #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| name: Deploy Extension | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # to be able to publish a GitHub release | |
| issues: write # to be able to comment on released issues | |
| pull-requests: write # to be able to comment on released pull requests | |
| id-token: write # to enable use of OIDC for npm provenance | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - run: npm run install:all:ci | |
| - name: Release | |
| env: | |
| HUSKY: 0 | |
| CI: true | |
| GITHUB_TOKEN: ${{ secrets.PAT_C64BASICV2 }} | |
| VSCE_PAT: ${{ secrets.VSCE_TOKEN }} | |
| run: npx semantic-release | |
| - id: versionSet | |
| run: echo "tag_name=v"$(cat $VERSION_FILE)"" >> "$GITHUB_OUTPUT" |