Skip to content

Commit

Permalink
fix(npm-publish): revert renaming of NPM_AUTH_TOKEN (#8831)
Browse files Browse the repository at this point in the history
* ci(npm-publish): remove unnecessary dry-run step

* fix(npm-publish): revert renamed env variable

* ci(npm-publish): rename steps
  • Loading branch information
caugner authored May 11, 2023
1 parent 1d17e24 commit 3ccc923
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,29 @@ jobs:
runs-on: ubuntu-latest

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

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

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

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

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

- 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
- name: Publish
if: steps.release.outputs.release_created
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 3ccc923

Please sign in to comment.