Skip to content

v1.5.0

v1.5.0 #7

Workflow file for this run

name: Publish package to npmjs
on:
release:
types:
- published
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- name: 📥 Download deps
run: npm ci
- name: 🧪 Run lint
run: npm run lint
- name: 🏗 Build
run: npm run build
- name: Ensure no git changes
run: git diff --exit-code
- name: Configure npm for publishing
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}