Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Jan 20, 2024
1 parent b7ee275 commit 55034b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/npm-publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ jobs:
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint
- run: npm test
- run: pnpm install
- run: pnpm test
- run: |
npm version prerelease --no-git-tag-version \
pnpm version prerelease --no-git-tag-version \
--preid=`git rev-parse --short HEAD`
npm publish --tag next
pnpm release -- --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
5 changes: 2 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- run: npm publish
- run: pnpm install
- run: pnpm release
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"scripts": {
"clean": "rimraf dist",
"compile": "pnpm updateVersion && pnpm format && pnpm clean && pnpm tspc -p tsconfig.build.json",
"test": "pnpm test:node && pnpm test:browser",
"test:node": "pnpm compile && pnpm aegir test -t node --cov -- --exit",
"test:browser": "pnpm compile && pnpm aegir test -t browser --cov -- --exit",
"format": "pnpm prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\" && pnpm eslint --ext .js,.ts src",
Expand Down

0 comments on commit 55034b1

Please sign in to comment.