Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: enable corepack
run: |
corepack enable
corepack prepare yarn@4.10.3 --activate
corepack prepare yarn@4.11.0 --activate
- name: cache yarn dependencies
uses: actions/cache@v4
with:
Expand All @@ -78,16 +78,13 @@ jobs:
${{ runner.os }}-yarn-
- run: yarn install --immutable
- run: yarn build
- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@latest
- name: Publish to npm
run: |
# Use npm CLI directly - requires npm >= 11.5.1 for OIDC trusted publishing
# Yarn 4.10.3 OIDC support appears broken despite all env vars being set correctly
# Yarn 4.11.0 with OIDC trusted publishing
if [ "${{ needs.check-version.outputs.is-prerelease }}" == "true" ]; then
npm publish --provenance --access public --tag ${{ needs.check-version.outputs.npm-tag }}
yarn npm publish --access public --tag ${{ needs.check-version.outputs.npm-tag }}
else
npm publish --provenance --access public
yarn npm publish --access public
fi

create-release:
Expand Down
9 changes: 9 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
nodeLinker: node-modules

npmPublishProvenance: true

npmRegistryServer: 'https://registry.npmjs.org'
npmPublishRegistry: "https://registry.npmjs.org"

npmScopes:
reforge-com:
npmRegistryServer: "https://registry.npmjs.org"
npmPublishRegistry: "https://registry.npmjs.org"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packageManager": "yarn@4.10.3",
"packageManager": "yarn@4.11.0",
"name": "@reforge-com/cli",
"version": "0.0.9",
"author": "Jeffrey Chupp @semanticart",
Expand Down