v0.9.1 #2
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 Package to npmjs | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Tests & Publish | |
steps: | |
- name: Cloning repo | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
id: setup-node | |
uses: actions/setup-node@v2 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
registry-url: https://registry.npmjs.org | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
- name: Run tests | |
run: npm run test | |
- name: Publish package | |
run: npm login && npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |