Merge branch 'sea-test' #147
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 | ||
Check failure on line 11 in .github/workflows/release.yml GitHub Actions / .github/workflows/release.ymlInvalid workflow file
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-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: | ||
pattern: executable-* | ||
merge-multiple: true | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release |