-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.14 KB
/
release-beta.yml
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
43
44
45
46
47
48
49
50
51
name: Beta Release
on:
push:
branches:
- beta
paths:
- src/**
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
# Uncomment to run tests
# - name: Run tests
# run: npm test
- name: Build project
run: npm run build
- name: Bump version and create beta prerelease
run: |
npm version prerelease --preid=beta --no-git-tag-version
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git commit -am "chore: bump version to $(jq -r .version < package.json)"
git push origin beta
- id: publish
name: Publish to NPM
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: false
provenance: true
tag: beta