Skip to content

Commit 4c2c8f1

Browse files
authored
Switch to npm trusted publishing (#252)
1 parent 905d684 commit 4c2c8f1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: 🤖 CI
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
concurrency:
69
group: ${{ github.workflow }}-${{ github.ref }}
710
cancel-in-progress: true
@@ -96,6 +99,10 @@ jobs:
9699
runs-on: ubuntu-latest
97100
needs: [prettier, lint, test, build]
98101
if: github.ref == 'refs/heads/main'
102+
permissions:
103+
contents: write
104+
pull-requests: write
105+
id-token: write
99106
steps:
100107
- name: ⬇️ Checkout repo
101108
uses: actions/checkout@v5
@@ -119,4 +126,3 @@ jobs:
119126
title: 'chore: release'
120127
env:
121128
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22
1+
24

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"license": "MIT",
2222
"homepage": "https://npm.im/react-native-responsive-image-view",
2323
"repository": {
24-
"type": "git",
2524
"url": "git+https://github.com/wKovacs64/react-native-responsive-image-view.git"
2625
},
2726
"bugs": {

0 commit comments

Comments
 (0)