Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded packages to latest version #28

Merged
merged 7 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "yarn@4.3.1",
"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
Loading