Skip to content

chore: publish npm package at head #7

chore: publish npm package at head

chore: publish npm package at head #7

name: Publish at Head
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main
jobs:
publish:
name: Publish to Github Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
registry-url: "https://npm.pkg.github.com"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: jetli/[email protected]
- uses: Swatinem/rust-cache@v2
- name: install and run cargo-patch
run: cargo install cargo-patch && cargo-patch
- name: compile
run: ./infra/compile.sh
- name: publish
run: npm publish
working-directory: js/plugin
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}