Skip to content

Commit

Permalink
Merge pull request #14 from gabrielbarth/sdx
Browse files Browse the repository at this point in the history
chore: add github packages publish settings on workflow
  • Loading branch information
gabrielbarth authored Nov 20, 2024
2 parents a2c961f + edf84bb commit 38d5926
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

# - name: Configure npm authentication for GitHub Packages
# run: |
# echo "@OWNER:registry=https://npm.pkg.github.com" >> ~/.npmrc
# echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
# env:
# OWNER: ${{ github.repository_owner }}

# - name: Publish to GitHub Packages
# run: npm publish --registry https://npm.pkg.github.com/
- name: Configure npm authentication for GitHub Packages
run: |
echo "@OWNER:registry=https://npm.pkg.github.com" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
env:
OWNER: ${{ github.repository_owner }}

- name: Publish to GitHub Packages
run: npm publish --registry https://npm.pkg.github.com/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "analytics-event-factory",
"description": "Analytics Event Factory",
"version": "1.0.4",
"version": "1.0.5",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down

0 comments on commit 38d5926

Please sign in to comment.