This repository was archived by the owner on Oct 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 17
17
token : ${{ steps.get-token.outputs.token }}
18
18
release-type : node
19
19
package-name : ' netlify'
20
+ - uses : actions/checkout@v2
21
+ if : ${{ steps.release.outputs.release_created }}
22
+ - uses : actions/setup-node@v2
23
+ with :
24
+ node-version : ' 15'
25
+ registry-url : ' https://registry.npmjs.org'
26
+ if : ${{ steps.release.outputs.release_created }}
27
+ - run : npm publish
28
+ if : ${{ steps.release.outputs.release_created }}
29
+ env :
30
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change @@ -42,10 +42,7 @@ Projects that depend heavily on this client that should be taken into considerat
42
42
43
43
## Releasing
44
44
45
- 1 . Merge the release PR
46
- 2 . Switch to the default branch ` git checkout main `
47
- 3 . Pull latest changes ` git pull `
48
- 4 . Publish the package ` npm publish `
45
+ Merge the release PR
49
46
50
47
## License
51
48
Original file line number Diff line number Diff line change 15
15
"./src/deploy/index.js" : " ./src/deploy/index.browser.js"
16
16
},
17
17
"scripts" : {
18
- "prepublishOnly" : " npm run build" ,
18
+ "prepublishOnly" : " npm ci && run-s test build" ,
19
19
"test" : " npm run format && npm run test:dev" ,
20
20
"format" : " run-s format:check-fix:*" ,
21
21
"format:lint" : " eslint --ignore-path .gitignore --fix --cache --format=codeframe --max-warnings=0 \" src/**/*.js\" " ,
You can’t perform that action at this time.
0 commit comments