Skip to content

Merge pull request #19 from extism/release-rc-3 #3

Merge pull request #19 from extism/release-rc-3

Merge pull request #19 from extism/release-rc-3 #3

Workflow file for this run

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 }}