Skip to content

Commit

Permalink
Merge pull request #1 from web-illinois/jonker/add_npm_workflow
Browse files Browse the repository at this point in the history
Jonker/add npm workflow
  • Loading branch information
marvel-uiuc authored Aug 21, 2024
2 parents 2d92d1b + de0f991 commit 97f1d45
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish_npm
on:
workflow_dispatch:
push:
tags: [ '**' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm rebuild
- run: npm run-script build
- name: Install to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.TOOLKIT_NPM_SECRET}}

0 comments on commit 97f1d45

Please sign in to comment.