Skip to content

Commit

Permalink
PLTFRS-18145: Release NPM package (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnatic09 authored Aug 25, 2023
1 parent 571a25a commit 3e76e26
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate Package

run-name: Release ${{ github.ref_name }} by @${{ github.actor }}

on:
release:
types:
- released

permissions:
contents: read
packages: write

jobs:
release:
name: Generate zuorajs GitHub Node Package
runs-on:
- self-hosted
- toolbox-runner
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://npm.pkg.github.com'
scope: '@airvantage'
- run: npm install --no-package-lock
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ github.token }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ jspm_packages

# Optional REPL history
.node_repl_history

.idea/
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"engines": {
"node": ">=6.4.x"
},
"repository": {
"type": "git",
"url": "https://github.com/AirVantage/zuorajs.git"
},
"main": "zuora.js",
"scripts": {
"test": "node test/main.js"
Expand Down

0 comments on commit 3e76e26

Please sign in to comment.