Skip to content

Commit 278a50b

Browse files
committed
chore: test
1 parent 92e280e commit 278a50b

File tree

2 files changed

+50
-77
lines changed

2 files changed

+50
-77
lines changed

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release on chore commit
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'spring*'
8+
- 'summer*'
9+
- 'winter*'
10+
pull_request:
11+
branches:
12+
- master
13+
- 'spring*'
14+
- 'summer*'
15+
- 'winter*'
16+
17+
jobs:
18+
release:
19+
# TODO: remove PR bypass after testing
20+
if: ${{ github.event_name == 'pull_request' || (contains(toJSON(github.event.commits), 'chore') && contains(toJSON(github.event.commits), 'release')) }}
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
24+
id-token: write
25+
packages: write
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Setup Node
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: '20'
36+
registry-url: 'https://registry.npmjs.org'
37+
cache: 'yarn'
38+
39+
- name: Install dependencies
40+
run: yarn install --frozen-lockfile
41+
42+
- name: Build
43+
run: yarn build
44+
45+
- name: Publish with Nx Release
46+
env:
47+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
48+
run: |
49+
TAG=$([ "$GITHUB_REF_NAME" = "master" ] && echo latest || echo release)
50+
yarn nx release publish --dry-run --yes --registry https://registry.npmjs.org --tag "$TAG"

.nucleus.yaml

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)