mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
parent
e1daa15867
commit
bdb7b9a2a9
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm ci
|
||||||
|
|
||||||
- name: Download Turborepo cache
|
- name: Download Turborepo cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -35,9 +35,6 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-16-turbo-
|
${{ runner.os }}-node-16-turbo-
|
||||||
|
|
||||||
- name: Build packages
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test -- --ci --maxWorkers=2
|
run: npm run test -- --ci --maxWorkers=2
|
||||||
env:
|
env:
|
||||||
@ -47,7 +44,8 @@ jobs:
|
|||||||
id: changesets
|
id: changesets
|
||||||
uses: changesets/action@v1
|
uses: changesets/action@v1
|
||||||
with:
|
with:
|
||||||
publish: npm run release
|
version: npm run changeset:version
|
||||||
|
publish: npm run changeset:publish
|
||||||
commit: "chore(release): version packages"
|
commit: "chore(release): version packages"
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
"prepare": "node -e 'process.exit(!process.env.CI)' || (husky install && npm run build)",
|
"prepare": "node -e 'process.exit(!process.env.CI)' || (husky install && npm run build)",
|
||||||
"tsc": "turbo tsc",
|
"tsc": "turbo tsc",
|
||||||
"changeset": "changeset",
|
"changeset": "changeset",
|
||||||
"release": "changeset publish"
|
"changeset:version": "changeset version && npm install && npm run update-unpkg-links",
|
||||||
|
"changeset:publish": "npm run build && changeset publish"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0",
|
"node": ">=14.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user