fix: I have read the CLA Document and I hereby sign the CLA #11
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: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [18, 20, 21, 22] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
node_version: ${{ matrix.node_version }} | |
- name: Test | |
uses: ./.github/actions/test | |
with: | |
codecov_token: ${{ secrets.CODECOV_TOKEN }} | |
release: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
needs: [test] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
# - name: Build Headless Kit | |
# shell: bash | |
# run: npx nx build headless | |
# - name: Release | |
# uses: ./.github/actions/release | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# npm_token: ${{ secrets.NPM_TOKEN }} | |
- name: Create Release Pull Request or Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: pnpm changeset.version | |
publish: pnpm run release | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |