diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 348bf66..46e1f06 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -5,25 +5,35 @@ on: permissions: id-token: write jobs: - publish: + # npm: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + + # - name: Install Node.js 20 + # uses: actions/setup-node@v4 + # with: + # node-version: 20 + # registry-url: https://registry.npmjs.org + + # - name: Install dependencies + # uses: pnpm/action-setup@v4 + # with: + # version: 9.14.2 + # run_install: | + # - args: [--frozen-lockfile] + + # - name: Publish package + # run: pnpm publish --provenance --no-git-checks + # env: + # NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} + jsr: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 - - name: Install Node.js 20 - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: https://registry.npmjs.org - - - name: Install dependencies - uses: pnpm/action-setup@v4 - with: - version: 9.14.2 - run_install: | - - args: [--frozen-lockfile] - - name: Publish package - run: pnpm publish --provenance --no-git-checks - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} + run: pnpm dlx jsr publish --dry-run diff --git a/jsr.json b/jsr.json index 5d88f7c..114c32b 100644 --- a/jsr.json +++ b/jsr.json @@ -1,5 +1,9 @@ { + "$schema": "https://jsr.io/schema/config-file.v1.json", "name": "@runescape/runescape", - "version": "0.9.0", - "exports": "./source/index.ts" + "version": "0.10.4", + "exports": "./source/index.ts", + "publish": { + "include": ["source/", "README.md"] + } }