chore: Version packages (#4) #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 & 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 |