diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2033dae..7db8c95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,32 +1,41 @@ -name: Changesets +name: Release on: push: branches: - main + paths: + - 'packages/**' + - '!packages/config-*/**' + - '.changeset/**' + +concurrency: ${{ github.workflow }}-${{ github.ref }} + env: CI: true + jobs: version: timeout-minutes: 15 runs-on: ubuntu-latest steps: - - name: checkout code repository + - name: Checkout Repo uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: setup node.js + + - name: setup node.js 20 uses: actions/setup-node@v3 with: node-version: 20 + - name: install pnpm run: npm i pnpm@latest -g - - name: Setup npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.PUBLISH_TOKEN }}" > .npmrc + - name: install dependencies run: pnpm install + - name: create and publish versions uses: changesets/action@v1 with: publish: pnpm ci:publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.PUBLISH_TOKEN }}