Skip to content

0.1.0-pre.18

0.1.0-pre.18 #18

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
on:
push:
tags:
- v*
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno test --allow-read ./test
publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
version: 6
run_install: false
- run: deno run -A ./scripts/build_npm.ts
- run: cd ./npm && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}