Skip to content

Commit

Permalink
NPM publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
NolanTrem committed Aug 23, 2024
1 parent 8e5e692 commit 0cf1bb0
Show file tree
Hide file tree
Showing 2 changed files with 1,088 additions and 1,993 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish NPM Package

on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: js/sdk
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 6.0.2

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Publish to npm
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 0cf1bb0

Please sign in to comment.