Skip to content

Commit d2f39a5

Browse files
Merge pull request #143 from patelvimal/master
added github action to publish package to npm
2 parents 73e6399 + 83c11b9 commit d2f39a5

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/npm-publish.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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: Node.js Package
5+
6+
on:
7+
push:
8+
branches:
9+
- 'release/**'
10+
release:
11+
types: [created]
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-node@v2
19+
with:
20+
node-version: 12
21+
- run: npm install
22+
23+
publish-npm:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: 12
31+
registry-url: https://registry.npmjs.org/
32+
scope: '@ngx-builders'
33+
- run: npm install
34+
- run: npm publish
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
37+

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netlify-builder/deploy",
3-
"version": "4.1.2",
3+
"version": "4.1.3",
44
"description": "A Netlify builder schematics for deployment",
55
"main": "index.js",
66
"builders": "./builders.json",

0 commit comments

Comments
 (0)