Skip to content

Commit a54fd19

Browse files
authored
Merge pull request #19 from pixability/jc-gui-2664-migrate-to-github-packages
[GUI-2664] - migrate to github packages
2 parents 33e4f1b + faa3000 commit a54fd19

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,17 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616

1717
- name: configure node
18-
uses: actions/setup-node@v2
18+
uses: actions/setup-node@v3
1919
with:
2020
node-version: 12
2121

2222
- name: install dependencies
2323
run: yarn install --frozenLockfile
2424
env:
25-
PIX_UI_NPM_TOKEN: ${{ secrets.PIX_UI_NPM_TOKEN }}
26-
27-
# - name: run tests
28-
# run: npm test
29-
# env:
30-
# PIX_UI_NPM_TOKEN: ${{ secrets.PIX_UI_NPM_TOKEN }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3126

3227
publish-npm:
3328
needs: build
@@ -45,9 +40,8 @@ jobs:
4540
- name: install dependencies
4641
run: yarn install --frozenLockfile
4742
env:
48-
PIX_UI_NPM_TOKEN: ${{ secrets.PIX_UI_NPM_TOKEN }}
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4944

5045
- run: npm publish
5146
env:
52-
NODE_AUTH_TOKEN: ${{ secrets.PIX_UI_NPM_TOKEN }}
53-
PIX_UI_NPM_TOKEN: ${{ secrets.PIX_UI_NPM_TOKEN }}
47+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
//registry.npmjs.org/:_authToken=${PIX_UI_NPM_TOKEN}
1+
@pixability:registry=https://npm.pkg.github.com
2+
always-auth=true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This package exposes a node CLI command called `make-federated-types`. Once inst
99
You'll need to install this module with either NPM or yarn:
1010

1111
```
12-
yarn add @pixability-ui/federated-types
12+
yarn add @pixability/federated-types
1313
```
1414

1515
You'll also need to place a `federation.config.json` in each package being federated. It will contain the remote name and exported members. These properties are used in Webpack's `ModuleFederationPlugin` configuration object. An example:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@pixability-ui/federated-types",
3-
"version": "0.2.0",
2+
"name": "@pixability/federated-types",
3+
"version": "0.3.0",
44
"description": "share typings for your federated typescript packages around your mono-repo",
55
"main": "cli.js",
66
"scripts": {

0 commit comments

Comments
 (0)