-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (35 loc) · 1.01 KB
/
Copy pathpre-release.yml
File metadata and controls
42 lines (35 loc) · 1.01 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
name: Pre-release (beta)
on:
workflow_dispatch:
jobs:
prerelease:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Configure git
run: |
git config --global user.email "shaadcode@gmail.com"
git config --global user.name "shaadcode"
- name: Configure npm authentication
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run release-it for pre-release
run: npm run pre-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}