ci: Update scripts #38
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 | |
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 }} | |
NPM_TOKEN: ${{ secrets.FLARE_CITY_NPM }} | |
GITHUB_TOKEN: ${{ secrets.FLARE_CITY_GITHUB_TOKEN }} | |
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 version # version so pnp can reconcile packages | |
publish: yarn publish # build and publish to npm | |
- name: Packages - tag | |
# if: steps.changesets.outputs.hasChangesets == 'false' | |
# You can do something when a publish should happen. | |
run: yarn tag |