Skip to content

Commit fcf40e0

Browse files
authored
Merge pull request #10 from oracle-samples/ci-create-release
Create automatic publish in NPMJS
2 parents 6e378c6 + 805ad16 commit fcf40e0

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
cache: "npm"
16+
registry-url: https://registry.npmjs.org/
17+
- run: npm -g install webpack webpack-cli
18+
- run: npm -g install rollup
19+
- run: npm install
20+
- run: npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"name": "@ofs-users/proxy",
77
"type": "module",
8-
"version": "1.4.0",
8+
"version": "1.5.1",
99
"description": "A Javascript proxy to access Oracle Field Service via REST API",
1010
"main": "dist/ofs.es.js",
1111
"module": "dist/ofs.es.js",

0 commit comments

Comments
 (0)