Merge pull request #17 from extism/docs/fix-getting-started #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish package to NPM | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: | |
- stable | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
- name: Setup Deno | |
uses: denoland/[email protected] | |
- name: NPM install | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Node Test | |
run: npm run test | |
- name: Deno Test | |
run: deno test -A ./tests/mod.test.ts | |
- name: Update package version | |
run: | | |
tag="${{ github.ref }}" | |
tag="${tag/refs\/tags\/v/}" | |
npm version $tag --no-git-tag-version --no-commit-hooks | |
- name: NPM Publish | |
uses: JS-DevTools/[email protected] | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |