From 229eae06629a1b0353192fb93f3df81d6839162b Mon Sep 17 00:00:00 2001 From: Elmer Bulthuis Date: Tue, 7 Nov 2023 14:24:06 +0100 Subject: [PATCH] fixing --- .github/workflows/publish-goodrouter-ts.yml | 12 ++++-------- goodrouter-ts/package.json | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-goodrouter-ts.yml b/.github/workflows/publish-goodrouter-ts.yml index ae1f5ba..ea24de5 100644 --- a/.github/workflows/publish-goodrouter-ts.yml +++ b/.github/workflows/publish-goodrouter-ts.yml @@ -3,10 +3,6 @@ on: tags: - goodrouter-ts@*.*.* -defaults: - run: - working-directory: goodrouter-ts - jobs: publish-npm: runs-on: ubuntu-latest @@ -17,8 +13,8 @@ jobs: - uses: actions/checkout@v3 - run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ~/.npmrc - run: npm ci - - run: npm version ${GITHUB_REF_NAME:14} - - run: npm publish + - run: npm version --workspace ${GITHUB_REF_NAME:13} ${GITHUB_REF_NAME:14} + - run: npm publish --workspace ${GITHUB_REF_NAME:13} publish-cloudflare: runs-on: ubuntu-latest @@ -29,9 +25,9 @@ jobs: steps: - uses: actions/checkout@v3 - run: npm ci - - run: npm run docs + - run: npm run --workspace ${GITHUB_REF_NAME:13} docs - run: > - npx wrangler pages publish ./docs + npx wrangler pages publish ${GITHUB_REF_NAME:13}/docs --commit-dirty=true --project-name $(basename $PWD) --branch main diff --git a/goodrouter-ts/package.json b/goodrouter-ts/package.json index b9d2e34..07332d6 100644 --- a/goodrouter-ts/package.json +++ b/goodrouter-ts/package.json @@ -20,7 +20,7 @@ }, "repository": { "type": "git", - "url": "git@github.com:LuvDaSun/goodrouter.git" + "url": "git+ssh://git@github.com/LuvDaSun/goodrouter.git" }, "author": "LuvDaSun Software B.V.", "license": "ISC",