Skip to content

Commit b6f1191

Browse files
committed
fix: change publish tag to v3-latest, fix prepublishOnly to use npx jest
1 parent df16d98 commit b6f1191

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
3434
npm whoami
35-
npm publish --ignore-scripts
35+
npm publish --tag v3-latest
3636
env:
3737
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3838

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
},
112112
"scripts": {
113113
"build": "tsc",
114-
"prepublishOnly": "npm run build && jest --testPathPatterns=spec",
114+
"prepublishOnly": "npm run build && npx jest --testPathPatterns=spec",
115115
"lint": "eslint 'index.ts' 'lib/**/*.ts' '__tests__/**/*.ts' --fix",
116116
"test": "jest",
117117
"test:coverage": "jest --coverage",
@@ -129,6 +129,6 @@
129129
}
130130
},
131131
"publishConfig": {
132-
"tag": "latest"
132+
"tag": "v3-latest"
133133
}
134134
}

0 commit comments

Comments
 (0)