Skip to content

Commit

Permalink
chore(release): update scripts & manual
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsmaerten committed May 6, 2024
1 parent 9942a7b commit 5b5c017
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- run: yarn
- run: yarn test
- run: yarn lint
- run: yarn package:rebuild --compress Brotli
- run: yarn package --compress Brotli
if: matrix.node-version == '20.x'

- name: Codecov
Expand Down
8 changes: 0 additions & 8 deletions PUBLISH.md

This file was deleted.

9 changes: 9 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Release manual

- Switch to main branch
- Run `yarn release`
- The project will be tested, built, bumped and tagged
- Tags will be pushed to GitHub
- A draft release will be created, and GitHub actions will add binaries to it
- `npm publish` will run automatically, and pause while waiting for OTP
- If everything went well, enter OTP to publish to NPM
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"hooks": "cross-env NODE_ENV=hooks yarn start",
"build": "tsc",
"package": "yarn build && yarn pkg ./dist/index.js --config ./package.json",
"release": "yarn np",
"release": "yarn np && npm publish",
"prepublish": "yarn package && yarn test",
"postpublish": "yarn package --compress Brotli",
"test": "jest",
Expand Down Expand Up @@ -90,6 +90,6 @@
"packageManager": "[email protected]",
"np": {
"cleanup": false,
"no-publish": true
"publish": false
}
}

0 comments on commit 5b5c017

Please sign in to comment.