-
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (46 loc) · 1.22 KB
/
release.yml
File metadata and controls
52 lines (46 loc) · 1.22 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
on:
workflow_run:
workflows: [fast-forward]
types:
- completed
jobs:
release:
name: Release
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
packages: write
statuses: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/node-setup
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: "Chore: Version Packages"
publish: yarn run publish
version: yarn run changeset:version
setupGitUser: true
createGithubReleases: true
env:
PACKAGE_PUBLISH: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Show log on failure
if: failure()
run: |
cd /home/runner/.npm/_logs/ || exit
for file in *; do
echo "=== File: $file ==="
cat "$file"
echo -e "\n\n"
done