-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.41 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
name: Release
on:
push:
branches:
- main
permissions:
contents: read # for checkout
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 }}
GITHUB_TOKEN: ${{ secrets.FLARE_CITY_GITHUB_TOKEN }}
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 & version
id: changesets
uses: changesets/action@v1
with:
title: "chore: Version packages"
commit: "chore: Version packages"
# version: yarn changeset version # version so pnp can reconcile packages
publish: yarn packages:publish # build and publish to npm
env:
GITHUB_TOKEN: ${{ secrets.FLARE_CITY_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.FLARE_CITY_NPM }}
- name: Packages - tag
# if: steps.changesets.outputs.hasChangesets == 'false'
# You can do something when a publish should happen.
run: yarn packages:tag