File tree Expand file tree Collapse file tree 4 files changed +276
-285
lines changed
Expand file tree Collapse file tree 4 files changed +276
-285
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ workflow_dispatch : {}
5+
6+ jobs :
7+ publish-packages :
8+ name : Publish Package
9+ if : github.ref_name == github.event.repository.default_branch
10+ permissions :
11+ id-token : write # Required for OIDC
12+ contents : read
13+ runs-on : ubuntu-latest
14+ env :
15+ FORCE_COLOR : ' 1'
16+ steps :
17+ - name : Checkout repo
18+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
19+ - name : Use Node.js 24
20+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # 5.0.0
21+ with :
22+ node-version : 24
23+ registry-url : https://registry.npmjs.org/
24+ - name : Install packages
25+ run : YARN_ENABLE_COLORS=true yarn install
26+ - name : Build
27+ run : |
28+ yarn typings
29+ yarn build
30+ - name : Publish packages to npm
31+ run : |
32+ npm --version
33+ npm publish
Original file line number Diff line number Diff line change @@ -11,24 +11,14 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 # checkout repo
14- - uses : actions/checkout@v4
14+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
1515 with :
1616 fetch-depth : 1
1717 # set up npm
18- - uses : actions/setup-node@v4
18+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # 5.0.0
1919 with :
20- node-version : " 18.x"
21- - name : Get yarn cache directory path
22- id : yarn-cache-dir-path
23- run : echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
24-
25- - uses : actions/cache@v3
26- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
27- with :
28- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
29- key : ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
30- restore-keys : |
31- ${{ runner.os }}-yarn-cache
20+ node-version : 24
21+ cache : yarn
3222 # install deps
3323 - run : yarn install
3424 # typechecking
Original file line number Diff line number Diff line change 1010 "url" : " https://github.com/Banno/banno-plugin-framework-bridge.git"
1111 },
1212 "scripts" : {
13- "clean:typings" : " rimraf './src/**/*.d.ts' && rimraf './index.d.ts'" ,
13+ "clean:typings" : " rimraf -g './src/**/*.d.ts' && rimraf './index.d.ts'" ,
1414 "typings" : " yarn clean:typings && tsc" ,
1515 "typecheck" : " tsc --emitDeclarationOnly false --noEmit" ,
1616 "build" : " rimraf './dist/**' && node ./build/build.js"
2929 "devDependencies" : {
3030 "closure-calculate-chunks" : " ^3.1.1" ,
3131 "google-closure-compiler" : " ^20240317.0.0" ,
32- "gulp" : " ^5.x " ,
33- "rimraf" : " ^5.x " ,
32+ "gulp" : " ^5.0.1 " ,
33+ "rimraf" : " ^6.0.1 " ,
3434 "string-replace-source-map" : " ^1.3.0" ,
3535 "typescript" : " ^3.7.5"
3636 },
You can’t perform that action at this time.
0 commit comments