Skip to content

Commit

Permalink
Merge pull request #10 from ProcessMaker/workflow
Browse files Browse the repository at this point in the history
Add workflow to publish package to NPM
  • Loading branch information
ryancooley authored Apr 28, 2024
2 parents ade87fa + 8017089 commit 5b5f39a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish Package

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Bump package version
run: npm version patch

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 5b5f39a

Please sign in to comment.