diff --git a/.changeset/config.json b/.changeset/config.json index 91b6a9512..fce1c2654 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -4,7 +4,7 @@ "commit": false, "fixed": [], "linked": [], - "access": "restricted", + "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch", "ignore": [] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..aedca9c63 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Release + +on: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + # https://github.com/pnpm/pnpm/issues/8953 + version: 9.15.3 + + - name: Use Node.js from nvmrc + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + registry-url: 'https://registry.npmjs.org' + + - name: Install Dependencies + run: pnpm i --frozen-lockfile + + - name: Create Release Pull Request or Publish to npm + id: changesets + uses: changesets/action@v1 + with: + publish: pnpm run release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b680ccbf..ca2bf1ff3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,10 +14,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup Node.js + - name: Use Node.js from nvmrc uses: actions/setup-node@v4 with: - node-version: "22" + node-version-file: '.nvmrc' + registry-url: 'https://registry.npmjs.org' - name: Install pnpm uses: pnpm/action-setup@v4 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..d5b283a3a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22.13.1