-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (39 loc) · 986 Bytes
/
release.yml
File metadata and controls
49 lines (39 loc) · 986 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
- name: Setup
uses: ./.github/actions/setup
- name: Run TypeScript Check
run: npm run typecheck
- name: Build
run: npm run build
- name: Create Release
uses: changesets/action@v1.5.1
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_CONFIG_PROVENANCE: false