Skip to content

0.0.17

0.0.17 #5

Workflow file for this run

name: Publish NPM package
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Lint
run: |
deno task lint
- name: Unit tests
run: |
deno test
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Build npm package
run: |
deno task build-npm ${{ github.event.release.tag_name }}
- name: npm publish
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd npm && npm publish --access public