diff --git a/.github/workflows/publish-v2.yaml b/.github/workflows/publish-v2.yaml new file mode 100644 index 00000000000..35ac9c0e0e7 --- /dev/null +++ b/.github/workflows/publish-v2.yaml @@ -0,0 +1,41 @@ +on: + push: + tags: + - 'remix@2.*' + +jobs: + publish: + name: publish (v2) + runs-on: ubuntu-latest + + permissions: + contents: write # Required for publishing the GitHub release + id-token: write # The OIDC ID token is used for authentication with JSR + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + run_install: false + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 24 + registry-url: https://registry.npmjs.org + cache: pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build packages + run: pnpm build + + - name: Publish + run: pnpm publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}