Skip to content

Commit 8ee0586

Browse files
authored
chore: Add workflow to publish NPM package and cut release 1.0 (argoproj#96)
1 parent 5392c5f commit 8ee0586

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/npm-publish.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release NPM package
2+
3+
on:
4+
release:
5+
types: [created]
6+
push:
7+
branches:
8+
- 'master'
9+
- 'release'
10+
- 'release-*'
11+
12+
jobs:
13+
publish-gpr:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
registry-url: https://npm.pkg.github.com/
21+
- run: npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "argo-ui",
2+
"name": "@argoproj/argo-ui",
33
"version": "1.0.0",
44
"main": "./src/index.ts",
55
"types": "./src/index.ts",

0 commit comments

Comments
 (0)