Skip to content

v1.9.0

v1.9.0 #17

Workflow file for this run

---
name: Publish package to npmjs
on:
release:
types:
- published
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: ⎔ Setup node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
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 }}