Skip to content

Commit 2e97eff

Browse files
Update main.yml
1 parent e5f0393 commit 2e97eff

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1-
name: "close issue"
2-
1+
name: Node.js Package
32
on:
4-
push:
5-
6-
3+
release:
4+
types: [created]
5+
76
jobs:
8-
closeissue:
9-
name: build
10-
uses: peter-evans/close-issue@v1
11-
with:
12-
issue-number: 1
13-
comment: Auto-closing issue
7+
publish-npm:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Harden Runner
11+
uses: step-security/harden-runner@v1
12+
with:
13+
egress-policy: audit
14+
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 16
19+
registry-url: https://registry.npmjs.org/
20+
- run: npm ci
21+
- run: npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)