Skip to content

Commit

Permalink
Merge pull request #63 from reside-eng/ht/restore-release-library
Browse files Browse the repository at this point in the history
fix: restore release_library.yml to use old commands
  • Loading branch information
htunnicliff authored Aug 23, 2024
2 parents 1f2bd90 + bb5e175 commit 4d6ccf2
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/release_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ jobs:
name: release
runs-on: ubuntu-latest
timeout-minutes: ${{ inputs.TIMEOUT }}
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -91,6 +88,16 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Configure NPM auth token
run: |
yarn config set npmAuthToken ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Configure Package Manager
run: |
echo Configuring NPM_TOKEN globally for .npmrc
npm config set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_PUBLISH_TOKEN }}
npm whoami
- name: Install dependencies with Yarn-Berry
run: |
yarn install --immutable
Expand Down Expand Up @@ -172,6 +179,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.get-workflow-token.outputs.token }}

- name: Cleanup .yarnrc.yml changes before publish
run: |
git restore .yarnrc.yml
- name: Publish to @latest dist-tag
if: github.ref == 'refs/heads/main' && inputs.IS_MONOREPO
run: |
Expand Down

0 comments on commit 4d6ccf2

Please sign in to comment.