Skip to content

v0.2.0

v0.2.0 #5

Workflow file for this run

name: Publish to npm
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Lint
run: npm run lint
# - name: Test
# run: npm test
- name: Publish package
run: |
if [ -n "${{ secrets.NPM_ORG }}" ]; then
npm publish --access public --scope=${{ secrets.NPM_ORG }}
else
npm publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}