File tree Expand file tree Collapse file tree 3 files changed +49
-3
lines changed Expand file tree Collapse file tree 3 files changed +49
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish artifact to GitHub registry
2
+
3
+ permissions :
4
+ contents : read
5
+ packages : write
6
+
7
+ on :
8
+ push :
9
+ tags :
10
+ - " *.*.*"
11
+
12
+ jobs :
13
+ publish-artifact :
14
+ name : Publish version to GitHub registry
15
+ container :
16
+ image : node:20
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Get yarn cache directory path
24
+ id : yarn-cache-dir-path
25
+ run : echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
26
+
27
+ - name : Cache node modules
28
+ uses : actions/cache@v4
29
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
30
+ with :
31
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
32
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33
+ restore-keys : ${{ runner.os }}-yarn-
34
+ - name : Install node modules
35
+ run : yarn install --frozen-lockfile
36
+ - name : Publish in dry-run mode
37
+ run : npm publish --dry-run
38
+ - name : Write token
39
+ run : echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
40
+ - name : Publish version to registry
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ NPM_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ run : npm publish
Original file line number Diff line number Diff line change
1
+ @onestaff:registry = https://npm.pkg.github.com/
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " react-native-firebase-app-instance-id" ,
2
+ "name" : " @onestaff/ react-native-firebase-app-instance-id" ,
3
3
"title" : " React Native Firebase App Instance Id" ,
4
4
"version" : " 1.0.0" ,
5
5
"description" : " Access the firebase app instance ID" ,
9
9
},
10
10
"repository" : {
11
11
"type" : " git" ,
12
- "url" : " git+https://github.com/szhigunov /react-native-firebase-app-instance-id.git" ,
13
- "baseUrl" : " https://github.com/szhigunov /react-native-firebase-app-instance-id"
12
+ "url" : " git+https://github.com/onestaff /react-native-firebase-app-instance-id.git" ,
13
+ "baseUrl" : " https://github.com/onestaff /react-native-firebase-app-instance-id"
14
14
},
15
15
"keywords" : [
16
16
" react-native"
You can’t perform that action at this time.
0 commit comments