Skip to content

Commit 9475ad5

Browse files
authoredJul 12, 2023
Update npm-publish.yml (#139)
* Update npm-publish.yml * Update package.json add publish config * Update package.json missing , * Update npm-publish.yml old package configuration * Update npm-publish.yml fix regex
1 parent f368eda commit 9475ad5

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
 

‎.github/workflows/npm-publish.yml

+15
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ jobs:
2828
node-version: 16
2929
registry-url: https://registry.npmjs.org/
3030
- run: npm install
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_ACCESS_TOKEN_IBM_PACKAGE}}
34+
35+
publish-npm-old:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v3
40+
- uses: actions/setup-node@v3
41+
with:
42+
node-version: 16
43+
registry-url: https://registry.npmjs.org/
44+
- run: sed -i 's/@ibm\/mobx-react-router/mobx-react-router/g' package.json
45+
- run: npm install
3146
- run: npm publish
3247
env:
3348
NODE_AUTH_TOKEN: ${{secrets.NPM_ACCESS_TOKEN}}

‎package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
2-
"name": "mobx-react-router",
3-
"version": "5.0.1",
2+
"name": "@ibm/mobx-react-router",
3+
"version": "5.0.2",
44
"description": "Keep your MobX state in sync with react-router",
55
"main": "dist/mobx-react-router.js",
66
"types": "./types.d.ts",
7+
"publishConfig": {
8+
"access": "public"
9+
},
710
"scripts": {
811
"lint": "eslint src __test__",
912
"test": "npm run lint && jest",

0 commit comments

Comments
 (0)
Please sign in to comment.