Skip to content

Commit

Permalink
chore: publish npm package at head
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed Nov 22, 2023
1 parent fae870a commit 454490f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish_at_head.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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@v4
- uses: actions/setup-node@v4
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 }}

0 comments on commit 454490f

Please sign in to comment.