From ac1048268fa56721f5ea8335874c560f3e1e7d60 Mon Sep 17 00:00:00 2001 From: ebenali Date: Mon, 15 Jan 2024 17:26:07 -0800 Subject: [PATCH] ci: explicit set yarnrc --- .github/workflows/publish.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bb76180..2ff7111 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,8 +57,15 @@ jobs: - run: yarn version patch - run: echo "NEW_TAG=$(jq .version > "$GITHUB_ENV" - run: git tag "v$NEW_TAG" + - run: git add package.json && git commit -m "botaction - auto tag v$NEW_TAG" - run: git remote set-url origin git@github.com:/MoreChickenDelivered/md-loader - run: git push --tags && git push + - name: Setup .yarnrc.yml + run: | + yarn config set npmScopes.my-org.npmRegistryServer "https://npm.pkg.github.com" + yarn config set npmScopes.my-org.npmAlwaysAuth true + yarn config set npmScopes.my-org.npmAuthToken $NODE_AUTH_TOKEN + - run: yarn npm publish \ No newline at end of file