v1.9.0 #24
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 Release | |
on: | |
# The build will be triggered when we publish a release | |
release: | |
types: [published] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node.js 💻 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install locked dependencies 🔧 | |
run: npm ci | |
- name: Version ✅ | |
run: npm version --no-git-tag-version ${{ github.event.release.tag_name }} | |
- name: Test 🧪 | |
env: | |
TZ: America/New_York | |
run: npm test | |
- name: Publish 📚 | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |