Skip to content

Commit

Permalink
chore: added workflows for auto publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
devbabs committed Mar 23, 2024
1 parent 6587fe7 commit a675f9f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish-to-gh-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: '@devbabs'
run: |
# Change publish registry
echo "$(jq '.publishConfig.registry = "https://npm.pkg.github.com"' package.json)" > package.json
# Add organisation scope to package name
echo "$(jq '.name = "@devbabs/react-native-toast-alert"' package.json)" > package.json
# And publish this boy
npm publish --@devbabs:registry=https://npm.pkg.github.com
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: '@devbabs'
- run: |
# Change publish registry
echo "$(jq '.publishConfig.registry = "https://npm.pkg.github.com"' package.json)" > package.json
# Add organisation scope to package name
echo "$(jq '.name = "@devbabs/react-native-toast-alert"' package.json)" > package.json
# And publish this boy
npm publish --@devbabs:registry=https://npm.pkg.github.com
# - run: npm ci
# - run: npm publish --registry=https://npm.pkg.github.com/@devbabs --access public
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit a675f9f

Please # to comment.