Skip to content

Commit 6287063

Browse files
authored
Merge pull request #21 from gabrielbarth/sdx
chore: remove github package publish settings
2 parents 50d1a27 + 10b300a commit 6287063

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Package to npmjs and GitHub Packages
1+
name: Publish Package to npmjs
22

33
on:
44
push:
@@ -11,7 +11,6 @@ jobs:
1111
permissions:
1212
contents: read
1313
id-token: write
14-
packages: write
1514

1615
steps:
1716
- name: Checkout code
@@ -36,14 +35,3 @@ jobs:
3635
run: npm publish
3736
env:
3837
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
39-
40-
- name: Configure npm authentication for GitHub Packages
41-
run: |
42-
echo "@${OWNER}:registry=https://npm.pkg.github.com" >> ~/.npmrc
43-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
44-
env:
45-
OWNER: ${{ github.repository_owner }}
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
48-
- name: Publish to GitHub Packages
49-
run: npm publish --registry https://npm.pkg.github.com/@${OWNER}/

.npmrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
2-
registry=https://registry.npmjs.org/
3-
4-
@gabrielbarth:registry=https://npm.pkg.github.com
5-
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
2+
registry=https://registry.npmjs.org/

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,5 @@
3636
"repository": {
3737
"type": "git",
3838
"url": "git+https://github.com/gabrielbarth/analytics-event-factory.git"
39-
},
40-
"publishConfig": {
41-
"registry": "https://npm.pkg.github.com/"
4239
}
4340
}

0 commit comments

Comments
 (0)