From 035b2f5cd3df96b19059425727ab7fb3d02bc9d3 Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Mon, 18 Mar 2024 19:47:39 +0100 Subject: [PATCH] use yarn to publish npm package --- .github/workflows/npmpackage.js.yml | 7 +++++-- yarn.lock | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npmpackage.js.yml b/.github/workflows/npmpackage.js.yml index d323578..dea8b93 100644 --- a/.github/workflows/npmpackage.js.yml +++ b/.github/workflows/npmpackage.js.yml @@ -13,7 +13,10 @@ jobs: with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - - run: yarn - - run: yarn npm publish + - run: | + corepack enable + yarn set version stable + yarn + yarn npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/yarn.lock b/yarn.lock index ea4aeea..32f8627 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,9 +5,9 @@ __metadata: version: 8 cacheKey: 10c0 -"@JohnRDOrazio/jquery-clock-plugin@workspace:.": +"@johnrdorazio/jquery-clock-plugin@workspace:.": version: 0.0.0-use.local - resolution: "@JohnRDOrazio/jquery-clock-plugin@workspace:." + resolution: "@johnrdorazio/jquery-clock-plugin@workspace:." dependencies: jquery: "npm:~3" languageName: unknown