Skip to content

Commit

Permalink
Revert "fix(npm-publish): revert renaming of NPM_AUTH_TOKEN (#8831)"
Browse files Browse the repository at this point in the history
This reverts commit 3ccc923.
  • Loading branch information
caugner committed May 11, 2023
1 parent e1f5194 commit f6c3a89
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Release
uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: release-please-action

- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
if: steps.release.outputs.release_created

- name: Setup
- name: Setup Node.js environment
uses: actions/setup-node@v3
if: steps.release.outputs.release_created
with:
node-version: 18
cache: yarn
registry-url: "https://registry.npmjs.org"

- name: Install
- name: Install all yarn packages
if: steps.release.outputs.release_created
run: yarn --frozen-lockfile

- name: Build
- name: Build the build
if: steps.release.outputs.release_created
env:
# What this does is it makes sure the built client is made for
Expand All @@ -59,8 +57,12 @@ jobs:
CONTENT_ROOT: testing/content/files
run: yarn build:prepare

- name: Publish
- name: Dry-run publish to see which files are included
if: steps.release.outputs.release_created
run: npm publish --dry-run

- name: Publish to npmjs
if: steps.release.outputs.release_created
run: npm publish --access public
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit f6c3a89

Please sign in to comment.