Skip to content

Commit

Permalink
Upgraded packages to latest version (#28)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Bullrich authored Jul 2, 2024
1 parent 18ba246 commit 523c199
Show file tree
Hide file tree
Showing 9 changed files with 8,040 additions and 4,434 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/javascript-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,23 @@ jobs:
name: running ${{ matrix.command }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/setup-node@v4.0.2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Cache node modules
id: cache-npm
id: yarn-cache
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- run: yarn run ${{ matrix.command }}

conclude:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
test-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- name: Check that the image builds
run: docker build . --file Dockerfile

Expand All @@ -23,7 +23,7 @@ jobs:
version: ${{ steps.verification.outputs.VERSION }}
exists: ${{ steps.checkTag.outputs.exists }}
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- name: Extract package.json version
id: package_version
run: echo "VERSION=$(jq '.version' -r package.json)" >> $GITHUB_OUTPUT
Expand All @@ -48,7 +48,7 @@ jobs:
contents: write
packages: write
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- name: Tag version and create release
run: gh release create $VERSION --generate-notes
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@

# Papi
src/codegen
.yarn/install-state.gz
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.3.1.cjs
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
FROM node:20 as Builder
FROM node:22 as Builder

WORKDIR /action

COPY package.json yarn.lock ./
COPY .yarn/ ./.yarn/
COPY package.json yarn.lock .yarnrc.yml ./

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

RUN yarn install --frozen-lockfile
RUN yarn install --immutable

COPY . .

RUN yarn run build

FROM node:20-slim
FROM node:22-slim

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

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ outputs:

runs:
using: 'docker'
image: 'docker://ghcr.io/paritytech/get-fellows-action/action:1.1.3'
image: 'docker://ghcr.io/paritytech/get-fellows-action/action:1.1.4'
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "get-fellows-action",
"version": "1.1.3",
"version": "1.1.4",
"description": "Fetch all the GitHub handles from the Fellows",
"main": "src/index.ts",
"scripts": {
"start": "node dist",
"build": "ncc build --license LICENSE",
"postinstall": "papi",
"test": "vitest",
"fix": "eslint --fix 'src/**/*'",
"lint": "eslint 'src/**/*'"
"fix": "npx eslint --fix 'src/**/*.ts' && npx prettier --write 'src/**/*.{ts,yml}'",
"lint": "npx eslint 'src/**/*.ts' && npx prettier --check 'src/**/*.{ts,yml}'"
},
"packageManager": "[email protected]",
"repository": {
"type": "git",
"url": "git+https://github.com/Bullrich/parity-action-template.git"
Expand All @@ -24,13 +25,13 @@
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^5.1.1",
"polkadot-api": "^0.4.0",
"smoldot": "2.0.22"
"polkadot-api": "^0.9.0",
"smoldot": "2.0.29"
},
"devDependencies": {
"@eng-automation/js-style": "^2.3.1",
"@vercel/ncc": "^0.38.0",
"typescript": "^5.2.2",
"vitest": "^1.5.0"
"@eng-automation/js-style": "^3.1.0",
"@vercel/ncc": "^0.38.1",
"typescript": "^5.5.3",
"vitest": "^1.6.0"
}
}
Loading

0 comments on commit 523c199

Please sign in to comment.