fix: add missing build #5
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 version | |
on: | |
push: | |
branches: [main, next] | |
jobs: | |
tests: | |
uses: "./.github/workflows/ci.yml" | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
release: | |
concurrency: | |
group: "release-${{ github.workflow }}-${{ github.ref }}" | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
issues: write # to be able to comment on released issues | |
pull-requests: write # to be able to comment on released pull requests | |
id-token: write # to enable use of OIDC for npm provenance | |
outputs: | |
VERSION: ${{ steps.get-version.outputs.VERSION }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
**/node_modules | |
.yarn/install-state.gz | |
.yarn/cache | |
key: yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: yarn- | |
- name: Install dependencies | |
run: yarn install | |
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | |
run: npm audit signatures | |
- name: Build | |
run: yarn build | |
- name: bump and release | |
run: yarn release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Retrieve version | |
id: get-version | |
run: echo "VERSION=$(git describe --tags --abbrev=0 | cut -c2-)" >> "$GITHUB_OUTPUT" |