Skip to content

Commit f995a1e

Browse files
Update deps and add publish workflow
1 parent 2cefec4 commit f995a1e

File tree

4 files changed

+276
-285
lines changed

4 files changed

+276
-285
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

.github/workflows/verify-pr.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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"
@@ -29,8 +29,8 @@
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
},

0 commit comments

Comments
 (0)