Skip to content

v2.7.3

v2.7.3 #61

Workflow file for this run

name: npm publish
on:
release:
types: [published]
workflow_dispatch:
jobs:
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
registry-url: https://registry.npmjs.org
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v2
with:
path: |
node_modules
key: node-v${{ vars.NODE_VERSION }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build
- run: npx -y can-npm-publish && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}