Merge pull request #571 from quip/kvnlam_peaceful-murdock #65
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: Publish npm packages @next tags | |
on: | |
push: | |
branches: | |
- next | |
jobs: | |
npm-publish-next: | |
# Publishes HEAD as a new -alpha.x version under the @next tag | |
name: Publish next tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20.11.1 | |
- run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Osp Rey [CI]" | |
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc | |
- run: npm ci | |
- run: npm test | |
- run: npm run build | |
- run: ./node_modules/.bin/lerna publish --conventional-commits --conventional-prerelease --pre-dist-tag next --yes | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
CI: true |