ci: do not use reserved secret name #159
This file contains 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
name: Build and release | |
on: | |
push: | |
branches: | |
- 'beta' | |
- 'master' | |
jobs: | |
verify: | |
name: Verify and build | |
uses: ./.github/workflows/build.yml | |
secrets: inherit | |
release: | |
name: Release | |
runs-on: windows-latest | |
needs: verify | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Prepare | |
uses: actions/setup-node@v4 | |
with: | |
# Do not include registy url here, it creates a .npmrc which prevents | |
# semantic-release from authenticating with npm | |
node-version: '22' | |
cache: 'npm' | |
- name: Install | |
run: npm ci | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: ./build | |
pattern: executable-* | |
merge-multiple: true | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release |