-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.32 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
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: release
env:
TURBO_TOKEN: ${{ secrets.FLARE_CITY_TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.FLARE_CITY_TURBO_TEAM }}
NPM_TOKEN: ${{ secrets.FLARE_CITY_NPM }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js LTS
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Setup Yarn v4
run: |
yarn config set npmScopes.flare-city.npmAuthToken "\${NPM_TOKEN}"
- name: Install dependencies
run: yarn --immutable
- name: Packages - build
run: yarn build
- name: Packages - version
id: changesets
uses: changesets/action@v1
with:
title: "chore: Version packages"
commit: "chore: Version packages"
version: yarn packages:version # version so pnp can reconcile packages
publish: yarn packages:publish # build and custom publish to npm using `yarn npm publish`
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Packages - tag
# if: steps.changesets.outputs.hasChangesets == 'false'
# You can do something when a publish should happen.
run: yarn packages:tag