Skip to content

Commit

Permalink
Merge pull request #10 from oracle-samples/ci-create-release
Browse files Browse the repository at this point in the history
Create automatic publish in NPMJS
  • Loading branch information
btoron authored Oct 3, 2023
2 parents 6e378c6 + 805ad16 commit fcf40e0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
registry-url: https://registry.npmjs.org/
- run: npm -g install webpack webpack-cli
- run: npm -g install rollup
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"name": "@ofs-users/proxy",
"type": "module",
"version": "1.4.0",
"version": "1.5.1",
"description": "A Javascript proxy to access Oracle Field Service via REST API",
"main": "dist/ofs.es.js",
"module": "dist/ofs.es.js",
Expand Down

0 comments on commit fcf40e0

Please sign in to comment.