Skip to content

Commit 730e19b

Browse files
Merge pull request #346 from apigee/Issue345
publish to npm
2 parents 9e689f4 + 6ccd117 commit 730e19b

File tree

3 files changed

+117
-93
lines changed

3 files changed

+117
-93
lines changed

.github/workflows/npm-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Publish to NPM
5+
on:
6+
release:
7+
types: [created]
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup Node
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
registry-url: 'https://registry.npmjs.org'
19+
- name: Install dependencies and build 🔧
20+
run: npm ci && npm run test
21+
- name: Publish package on NPM 📦
22+
run: npm publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)