-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (43 loc) · 1.14 KB
/
release.yml
File metadata and controls
54 lines (43 loc) · 1.14 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
43
44
45
46
47
48
49
50
51
52
name: Release WP-React-Lib to NPM
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
packages: write
id-token: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: wp-react-lib
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install dependencies
run: npm install
- name: Run TypeScript Check
run: npm run typecheck
- name: Build
run: npm run build
- name: Create Release
uses: changesets/action@001cd79f0a536e733315164543a727bdf2d70aff
id: release
with:
version: npm run version
publish: npm exec changeset publish --git-tag
commit: "chore(release): update version"
title: "chore(release): update version"
cwd: "./wp-react-lib"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}