File tree Expand file tree Collapse file tree 4 files changed +13
-28
lines changed
packages/react-rough-fiber Expand file tree Collapse file tree 4 files changed +13
-28
lines changed Original file line number Diff line number Diff line change 4
4
name : Node.js Package
5
5
6
6
on :
7
- push :
8
- branches :
9
- - main
10
- tags-ignore :
11
- - ' **'
12
- paths-ignore :
13
- - ' **/*.md'
14
- - LICENSE
15
- - ' **/*.gitignore'
16
- - .editorconfig
17
- - apps/**
7
+ release :
8
+ types : [published]
18
9
19
10
jobs :
20
11
publish-npm :
29
20
with :
30
21
version : 7.29.1
31
22
run_install : true
32
- - run : cd packages/react-rough-fiber && pnpm release
23
+ - name : Test
24
+ run : pnpm test
25
+ - name : Build
26
+ run : cd packages/react-rough-fiber && node scripts/npm.js && pnpm build
33
27
- name : Publish
34
- run : cd packages/react-rough-fiber && ls
28
+ run : cd packages/react-rough-fiber && npm publish --access public
35
29
env :
36
30
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Original file line number Diff line number Diff line change @@ -10,19 +10,11 @@ jobs:
10
10
steps :
11
11
- uses : actions/checkout@v3
12
12
13
- - name : setup node
14
- uses : actions/setup-node@v3
13
+ - uses : actions/setup-node@v3
15
14
with :
16
- node-version : " 14"
17
-
18
- - name : Cache pnpm modules
19
- uses : actions/cache@v2
20
- with :
21
- path : ~/.pnpm-store
22
- key : ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
23
- restore-keys : |
24
- ${{ runner.os }}-
25
- - uses : pnpm/action-setup@v2.1.0
15
+ node-version : 16
16
+ registry-url : https://registry.npmjs.org/
17
+ - uses : pnpm/action-setup@v2
26
18
with :
27
19
version : 7.29.1
28
20
run_install : true
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-rough-fiber" ,
3
- "version" : " 0.0.1-alpha1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"main" : " ./src/index.tsx" ,
5
5
"license" : " MIT" ,
6
6
"scripts" : {
7
7
"lint" : " eslint *.ts*" ,
8
8
"test" : " jest --config jest.config.js --no-cache" ,
9
- "build" : " rm -rf dist && tsup" ,
10
- "release" : " node scripts/npm.js && npm run build"
9
+ "build" : " rm -rf dist && tsup"
11
10
},
12
11
"devDependencies" : {
13
12
"@babel/core" : " ^7.0.0" ,
You can’t perform that action at this time.
0 commit comments