chore(main): release 18.0.3 (#229) #413
Workflow file for this run
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 to npm | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ~18.17.1 | |
- run: npm install | |
publish-npm: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ~18.17.1 | |
registry-url: https://registry.npmjs.org/ | |
- run: npm install | |
- run: npm run build | |
- run: npm pack | |
- run: | | |
VERSION=$(jq -r .version package.json) | |
npm publish aotearoan-neon-${VERSION}.tgz --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | |
publish-gpr: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ~18.17.1 | |
registry-url: https://npm.pkg.github.com/ | |
- run: npm install | |
- run: npm run build | |
- run: npm pack | |
- run: | | |
VERSION=$(jq -r .version package.json) | |
npm publish aotearoan-neon-${VERSION}.tgz --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
publish-gh-pages: | |
needs: publish-gpr | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ~18.17.1 | |
registry-url: https://npm.pkg.github.com/ | |
- run: | | |
git config user.name "aotearoan" | |
git config user.email "andrew@aotearoan.com" | |
- run: npm install | |
- run: npm run gh-pages-deploy |