use node 18 and latest actions (#206) #136
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 | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- uses: ./.github/actions/build-test | |
publish: | |
runs-on: ubuntu-latest | |
needs: [build] | |
permissions: | |
contents: write | |
id-token: write | |
issues: write | |
repository-projects: write | |
deployments: write | |
packages: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- name: Build | |
run: yarn build --cache-dir=".turbo" | |
env: | |
NODE_ENV: production | |
- uses: changesets/action@v1 | |
with: | |
version: yarn run changeset version | |
publish: yarn run changeset publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true |