Skip to content

Commit 846ad6d

Browse files
author
devgioele
committed
add github actions
1 parent c5af015 commit 846ad6d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Create Relase & Publish Package
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
jobs:
7+
build:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/create-release@v1
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
with:
15+
tag_name: ${{ github.ref }}
16+
release_name: Release ${{ github.ref }}
17+
draft: false
18+
prerelease: false
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
- run: npm install
23+
- run: npm publish
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)