Skip to content

Commit

Permalink
Merge pull request #25 from brightsign/diegobrsign/publish
Browse files Browse the repository at this point in the history
Use publish config generated by setup-node
  • Loading branch information
diegobrsign authored May 15, 2024
2 parents fe6b0db + 97439cd commit b94b7b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
with:
node-version: '14.17.6'
cache: 'yarn'
token: ${{steps.app-token.outputs.token}}
registry-url: 'https://npm.pkg.github.com'
always-auth: 'true'
- run: yarn --frozen-lockfile
- run: ./scripts/bump_version.sh
- run: yarn workspaces run publish
env:
NODE_AUTH_TOKEN: ${{steps.app-token.outputs.token}}
- run: yarn workspaces run publish
5 changes: 2 additions & 3 deletions scripts/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ for dir in $workspace_dirs; do
pushd $dir
echo "Current directory: $(pwd)"

# add package registry configuration
echo "//npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
echo "@brightsign:registry=https://npm.pkg.github.com" >> .npmrc
# add package registry configuration from setup-node at the root of the repo
cp ../.npmrc .npmrc

PACKAGE_NAME=$(jq -r '.name' package.json)

Expand Down

0 comments on commit b94b7b7

Please sign in to comment.