diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index eac10a1..2d75c99 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -5,6 +5,8 @@ inputs: description: The version of Node.js to install required: true default: 20.18.1 + registry-url: + description: Optional registry to set up for auth runs: using: composite @@ -16,6 +18,7 @@ runs: with: cache: pnpm node-version: ${{ inputs.node-version }} + registry-url: ${{ inputs.registry-url }} - name: Install dependencies shell: bash run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 191663a..e44d974 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,10 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies uses: ./.github/actions/setup + with: + registry-url: "https://registry.npmjs.org" + - name: Upgrade npm for OIDC support + run: npm install -g npm@latest - name: Create Release Pull Request or Publish uses: changesets/action@v1 with: @@ -29,4 +33,3 @@ jobs: publish: pnpm changeset-publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }}