Skip to content

Commit 523c199

Browse files
authored
Upgraded packages to latest version (#28)
Upgraded yarn to version 4 Upgraded all the dependencies to latest. - papi `0.4.0` -> `0.9.0` which contains a fix for polkadot-api/polkadot-api#327
1 parent 18ba246 commit 523c199

File tree

9 files changed

+8040
-4434
lines changed

9 files changed

+8040
-4434
lines changed

.github/workflows/javascript-test.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,23 @@ jobs:
1414
name: running ${{ matrix.command }}
1515
timeout-minutes: 5
1616
steps:
17-
- uses: actions/checkout@v4.1.1
18-
- uses: actions/setup-node@v4.0.2
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
1919
with:
2020
node-version: 20
21+
- name: Get yarn cache directory path
22+
id: yarn-cache-dir-path
23+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
2124
- name: Cache node modules
22-
id: cache-npm
25+
id: yarn-cache
2326
uses: actions/cache@v4
24-
env:
25-
cache-name: cache-node-modules
2627
with:
27-
# npm cache files are stored in `~/.npm` on Linux/macOS
28-
path: ~/.npm
29-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
30-
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
28+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
29+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-yarn-
3132
- name: Install dependencies
32-
run: yarn install --frozen-lockfile
33+
run: yarn install --immutable
3334
- run: yarn run ${{ matrix.command }}
3435

3536
conclude:

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
test-image:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4.1.1
16+
- uses: actions/checkout@v4
1717
- name: Check that the image builds
1818
run: docker build . --file Dockerfile
1919

@@ -23,7 +23,7 @@ jobs:
2323
version: ${{ steps.verification.outputs.VERSION }}
2424
exists: ${{ steps.checkTag.outputs.exists }}
2525
steps:
26-
- uses: actions/checkout@v4.1.1
26+
- uses: actions/checkout@v4
2727
- name: Extract package.json version
2828
id: package_version
2929
run: echo "VERSION=$(jq '.version' -r package.json)" >> $GITHUB_OUTPUT
@@ -48,7 +48,7 @@ jobs:
4848
contents: write
4949
packages: write
5050
steps:
51-
- uses: actions/checkout@v4.1.1
51+
- uses: actions/checkout@v4
5252
- name: Tag version and create release
5353
run: gh release create $VERSION --generate-notes
5454
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212

1313
# Papi
1414
src/codegen
15+
.yarn/install-state.gz

.yarn/releases/yarn-4.3.1.cjs

Lines changed: 894 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.3.1.cjs

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
FROM node:20 as Builder
1+
FROM node:22 as Builder
22

33
WORKDIR /action
44

5-
COPY package.json yarn.lock ./
5+
COPY .yarn/ ./.yarn/
6+
COPY package.json yarn.lock .yarnrc.yml ./
67

78
COPY collectives.scale polkadot.scale polkadot-api.json ./
89

9-
RUN yarn install --frozen-lockfile
10+
RUN yarn install --immutable
1011

1112
COPY . .
1213

1314
RUN yarn run build
1415

15-
FROM node:20-slim
16+
FROM node:22-slim
1617

1718
COPY --from=Builder /action/dist /action
1819

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ outputs:
1212

1313
runs:
1414
using: 'docker'
15-
image: 'docker://ghcr.io/paritytech/get-fellows-action/action:1.1.3'
15+
image: 'docker://ghcr.io/paritytech/get-fellows-action/action:1.1.4'

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "get-fellows-action",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Fetch all the GitHub handles from the Fellows",
55
"main": "src/index.ts",
66
"scripts": {
77
"start": "node dist",
88
"build": "ncc build --license LICENSE",
99
"postinstall": "papi",
1010
"test": "vitest",
11-
"fix": "eslint --fix 'src/**/*'",
12-
"lint": "eslint 'src/**/*'"
11+
"fix": "npx eslint --fix 'src/**/*.ts' && npx prettier --write 'src/**/*.{ts,yml}'",
12+
"lint": "npx eslint 'src/**/*.ts' && npx prettier --check 'src/**/*.{ts,yml}'"
1313
},
14+
"packageManager": "yarn@4.3.1",
1415
"repository": {
1516
"type": "git",
1617
"url": "git+https://github.com/Bullrich/parity-action-template.git"
@@ -24,13 +25,13 @@
2425
"dependencies": {
2526
"@actions/core": "^1.10.1",
2627
"@actions/github": "^5.1.1",
27-
"polkadot-api": "^0.4.0",
28-
"smoldot": "2.0.22"
28+
"polkadot-api": "^0.9.0",
29+
"smoldot": "2.0.29"
2930
},
3031
"devDependencies": {
31-
"@eng-automation/js-style": "^2.3.1",
32-
"@vercel/ncc": "^0.38.0",
33-
"typescript": "^5.2.2",
34-
"vitest": "^1.5.0"
32+
"@eng-automation/js-style": "^3.1.0",
33+
"@vercel/ncc": "^0.38.1",
34+
"typescript": "^5.5.3",
35+
"vitest": "^1.6.0"
3536
}
3637
}

0 commit comments

Comments
 (0)