Skip to content

Commit 62c7416

Browse files
committed
Create publish.yml
1 parent 70baf43 commit 62c7416

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Package to npmjs
2+
on:
3+
push:
4+
tags:
5+
- "v*.*.*"
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
environment: release # Optional: for enhanced security
10+
permissions:
11+
contents: read
12+
id-token: write
13+
steps:
14+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
15+
# Setup .npmrc file to publish to npm
16+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
17+
with:
18+
node-version: "lts/*"
19+
registry-url: "https://registry.npmjs.org"
20+
- name: Update npm
21+
run: npm install -g npm@latest
22+
- run: npm ci
23+
- run: npm run compile
24+
- run: npm publish

0 commit comments

Comments
 (0)