Skip to content

Merge pull request #778 from maiieul/popover-data-attributes #5

Merge pull request #778 from maiieul/popover-data-attributes

Merge pull request #778 from maiieul/popover-data-attributes #5

Workflow file for this run

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 }}