Merge pull request #737 from bitgopatmcl/looser-exact-optional-check #11
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: Release | |
on: | |
push: | |
branches: [master, alpha, beta, next, next-major] | |
# Only allow one release workflow to execute at a time, since each release | |
# workflow uses shared resources (git tags, package registries) | |
concurrency: | |
group: ${{ github.workflow }} | |
jobs: | |
release: | |
name: Release | |
if: github.repository_owner == 'BitGo' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm ci | |
- name: Compile TypeScript | |
run: npm run build | |
# Run tests before releasing to verify the code behaves as expected. We expect | |
# this step to identify some (but not all) semantic merge conflicts | |
- name: Test | |
run: npm test | |
# DISCUSS: Use `jq` or just a small node script to create/modify `.npmrc` in case | |
# one gets added in the future | |
- name: Prepare Release | |
run: mv .npmrc-release .npmrc | |
- name: Release | |
run: npx multi-semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |