Skip to content

Commit

Permalink
Replace NPM_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
tajo committed May 3, 2022
1 parent 07e3231 commit 2f385f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,20 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
[email protected]
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GIT_DEPLOY_KEY }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
set -eo pipefail

echo "Running release"
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc

echo "Build @ladle/react"
turbo run build --filter=@ladle/react
Expand Down

1 comment on commit 2f385f1

@vercel
Copy link

@vercel vercel bot commented on 2f385f1 May 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ladle – ./

ladle.vercel.app
ladle-git-master-miksu.vercel.app
ladle.dev
ladle-miksu.vercel.app

Please sign in to comment.