diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..60621d5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish + +permissions: + contents: read + id-token: write + +on: + push: + tags: + - "v*" + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + with: + node-version: 24 + registry-url: https://registry.npmjs.org + package-manager-cache: false + - run: pnpm install + - run: pnpm test + - run: pnpm publish diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 4a18d47..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Release - -permissions: - contents: write - id-token: write - -on: - push: - tags: - - "v*" - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - uses: pnpm/action-setup@v4 - - - uses: actions/setup-node@v6 - with: - node-version: lts/* - cache: pnpm - registry-url: https://registry.npmjs.org - - - run: pnpm i - - - run: pnpm build - - - run: pnpm publish --access public --no-git-checks - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..237891c --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1 @@ +gitChecks: false