Skip to content

Commit 1614e10

Browse files
committed
Move to @onestaff
1 parent da9ce40 commit 1614e10

File tree

3 files changed

+49
-3
lines changed

3 files changed

+49
-3
lines changed

.github/workflows/publish-version.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@onestaff:registry=https://npm.pkg.github.com/

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-native-firebase-app-instance-id",
2+
"name": "@onestaff/react-native-firebase-app-instance-id",
33
"title": "React Native Firebase App Instance Id",
44
"version": "1.0.0",
55
"description": "Access the firebase app instance ID",
@@ -9,8 +9,8 @@
99
},
1010
"repository": {
1111
"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"
1414
},
1515
"keywords": [
1616
"react-native"

0 commit comments

Comments
 (0)