-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (27 loc) · 787 Bytes
/
release.yml
File metadata and controls
30 lines (27 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: release and publish
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
- name: Install dependencies
run: npm ci
- name: initialize git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "shaadcode"
- name: initialize the npm config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Run release
run: npm run release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}