-
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 2.05 KB
/
release.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Release
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
jobs:
release:
name: 🚚 Release
runs-on: ubuntu-latest
steps:
- name: 🕶️ Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 📦 Install
uses: ./.github/common/install
- name: 🔨 Build
run: npm run build:packages
- name: 🧪 Tests
run: npm run test:packages
- name: 🥸 Configure Identity
run: |
git config --global user.email "opensource@nordcom.io"
git config --global user.name "nordcombot"
- name: 🤝 Create Release Pull Request or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
createGithubReleases: true
publish: npm run release
setupGitUser: false
commit: |
Changeset: Increment package versions.
Congratulations on the new release! 🎉
This is an automated commit triggered by the `release` workflow.
title: 🚀 Release packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MACHINE_USER }}
- name: 🫨 Create Unstable Release
if: steps.changesets.outputs.published != 'true'
run: |
git checkout master
npm run version:unstable
npm run release:unstable
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MACHINE_USER }}