From 02601e76fabd649124b1385e14d754fa491a90d0 Mon Sep 17 00:00:00 2001 From: "tembo[bot]" <208362400+tembo[bot]@users.noreply.github.com> Date: Thu, 9 Apr 2026 19:36:57 +0000 Subject: [PATCH] chore: update publish workflows to use pnpm@10.33.0 with GitHub Packages and Node 24.14.1 --- .github/workflows/publish.yml | 36 ++++++++++++++--------------------- .npmrc | 4 ++++ package.json | 4 +++- 3 files changed, 21 insertions(+), 23 deletions(-) create mode 100644 .npmrc diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a03e6e9..e62da18 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,33 +2,25 @@ name: publish on: push: - branches: - - '*' tags: - 'v*' jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - - run: npm ci - - run: npm run lint - publish-npm: if: startsWith(github.ref, 'refs/tags/v') - needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file + - name: checkout + uses: actions/checkout@v5 + + - name: set up node and pnpm + run: | + corepack enable + pnpm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}" + pnpm config set '//npm.pkg.github.com/:_authToken' "${{ secrets.GITHUB_TOKEN }}" + pnpm i + + - name: publish + run: | + pnpm publish --registry https://npm.pkg.github.com --no-git-checks + pnpm publish --registry https://registry.npmjs.org --no-git-checks diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..9133ab2 --- /dev/null +++ b/.npmrc @@ -0,0 +1,4 @@ +engine-strict=true +use-node-version=24.14.1 +node-version=24.14.1 +node-mirror:release=https://nodejs-org.b-cdn.net/download/release/ diff --git a/package.json b/package.json index 0436fb6..e0ab0df 100644 --- a/package.json +++ b/package.json @@ -43,5 +43,7 @@ "src", "index.mjs", "index.js" - ] + ], + "packageManager": "pnpm@10.33.0", + "repository": "https://github.com/beyonk/svelte-googlemaps.git" }