Skip to content

Commit 33a86b0

Browse files
authored
chore: release 0.32.1 (#757)
2 parents 440fe51 + 93a6315 commit 33a86b0

24 files changed

Lines changed: 90 additions & 106 deletions

File tree

‎.github/actions/cached-image-pull/action.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ runs:
2323
env:
2424
CACHE_PATH: ${{ inputs.cache-directory }}${{ inputs.cache-file }}.tar
2525
run: |
26-
echo "::set-output name=path::$CACHE_PATH"
26+
echo "path=$CACHE_PATH" >> $GITHUB_OUTPUT
2727
2828
- name: check image cache
2929
id: image-cache
30-
uses: actions/cache@v2
30+
uses: actions/cache@v3
3131
with:
3232
path: ${{ steps.image-file.outputs.path }}
3333
key: image-cache-${{ inputs.image }}

‎.github/workflows/devpackpublish.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,22 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && github.repository == 'kiltprotocol/sdk-js'"
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
with:
2121
# fetch-depth 0 and token needed to push changes on the package.json files back.
2222
fetch-depth: 0
2323
token: ${{ secrets.REPO_ACCESS_TOKEN }}
24-
- uses: actions/setup-node@v2
24+
- uses: actions/setup-node@v3
2525
with:
2626
node-version: 14
27+
cache: 'yarn'
2728
- name: Install dependencies
2829
run: yarn install --immutable
2930
- name: Bump prerelease version of root package
3031
run: npm version --no-git-tag-version prerelease
3132
- name: Get current package version
3233
id: package_version
33-
run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")"
34+
run: echo "package_version=$(node -pe "require('./package.json').version")" >> $GITHUB_OUTPUT
3435
- name: Set all other packages to same version
3536
env:
3637
PACKAGE_VERSION: ${{ steps.package_version.outputs.package_version }}

‎.github/workflows/docpublish.yml‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
14-
with:
15-
persist-credentials: false
13+
uses: actions/checkout@v3
1614

1715
- name: Install and Build
1816
run: |
1917
yarn install
2018
yarn build:docs
2119
2220
- name: Deploy
23-
uses: JamesIves/github-pages-deploy-action@releases/v3
21+
uses: JamesIves/github-pages-deploy-action@v4
2422
with:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
BRANCH: gh-pages # The branch the action should deploy to.
27-
FOLDER: docs/api # The folder the action should deploy to.
23+
branch: gh-pages # The branch the action should deploy to.
24+
folder: docs/api # The folder the action should deploy to.

‎.github/workflows/npmpublish-rc.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-node@v3
1111
with:
1212
node-version: 14
13+
cache: 'yarn'
1314
- run: yarn install --immutable
1415
- run: yarn build
1516
- run: yarn test:ci
@@ -18,10 +19,11 @@ jobs:
1819
needs: build
1920
runs-on: ubuntu-latest
2021
steps:
21-
- uses: actions/checkout@v2
22-
- uses: actions/setup-node@v2
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
2324
with:
2425
node-version: 14
26+
cache: 'yarn'
2527
- name: Install dependencies
2628
run: yarn install --immutable
2729
- name: Build packages
@@ -30,7 +32,7 @@ jobs:
3032
run: yarn run bundle
3133
- name: Get current package version
3234
id: package_version
33-
run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")"
35+
run: echo "package_version=$(node -pe "require('./package.json').version")" >> $GITHUB_OUTPUT
3436
- name: Publish to NPM
3537
run: yarn run publish --tag rc
3638
env:

‎.github/workflows/npmpublish.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-node@v3
1111
with:
1212
node-version: 14
13+
cache: 'yarn'
1314
- run: yarn install --immutable
1415
- run: yarn build
1516
- run: yarn test:ci
@@ -18,10 +19,11 @@ jobs:
1819
needs: build
1920
runs-on: ubuntu-latest
2021
steps:
21-
- uses: actions/checkout@v2
22-
- uses: actions/setup-node@v2
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
2324
with:
2425
node-version: 14
26+
cache: 'yarn'
2527
- name: Install dependencies
2628
run: yarn install --immutable
2729
- name: Build packages
@@ -30,7 +32,7 @@ jobs:
3032
run: yarn run bundle
3133
- name: Get current package version
3234
id: package_version
33-
run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")"
35+
run: echo "package_version=$(node -pe "require('./package.json').version")" >> $GITHUB_OUTPUT
3436
- name: Publish to NPM
3537
run: yarn run publish --tag latest
3638
env:

‎.github/workflows/semantic-pull-request.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
validate:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: amannn/action-semantic-pull-request@v4
14+
- uses: amannn/action-semantic-pull-request@v5
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/test-node-candidate.yml‎

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Use Node.js 14
21+
- name: Setup Node.js
2222
uses: actions/setup-node@v3
2323
with:
2424
node-version: 14
@@ -30,7 +30,7 @@ jobs:
3030
- name: zip build
3131
run: zip -r build.zip .
3232
- name: upload build
33-
uses: actions/upload-artifact@v2
33+
uses: actions/upload-artifact@v3
3434
with:
3535
name: build
3636
path: build.zip
@@ -51,22 +51,20 @@ jobs:
5151
needs: cache_imgs
5252

5353
steps:
54-
- name: Log out node version
55-
run: node --version
56-
- name: Use Node.js 14
54+
- name: Setup Node.js
5755
uses: actions/setup-node@v3
5856
with:
5957
node-version: 14
6058
- name: Log out node version
6159
run: node --version
62-
- uses: actions/download-artifact@v2
60+
- uses: actions/download-artifact@v3
6361
with:
6462
name: build
6563
- name: unzip
6664
run: unzip build.zip -d .
6765

6866
- name: Configure AWS credentials
69-
uses: aws-actions/configure-aws-credentials@v1
67+
uses: aws-actions/configure-aws-credentials@v2
7068
with:
7169
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
7270
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -99,19 +97,19 @@ jobs:
9997
needs: build
10098

10199
steps:
102-
- name: Use Node.js 14
100+
- name: Setup Node.js
103101
uses: actions/setup-node@v3
104102
with:
105103
node-version: 14
106-
- uses: actions/download-artifact@v2
104+
- uses: actions/download-artifact@v3
107105
with:
108106
name: build
109107
- name: unzip
110108
run: unzip build.zip -d .
111109
- name: yarn bundle
112110
run: yarn bundle
113111
- name: upload bundle artifact
114-
uses: actions/upload-artifact@v2
112+
uses: actions/upload-artifact@v3
115113
with:
116114
name: checked-nonmin-bundle
117115
path: packages/sdk-js/dist/sdk-js.umd.js
@@ -122,21 +120,21 @@ jobs:
122120
needs: [cache_imgs, bundle_cache]
123121

124122
steps:
125-
- name: Use Node.js 14
126-
uses: actions/setup-node@v3
123+
- uses: actions/setup-node@v3
127124
with:
128-
node-version: 14
129-
- uses: actions/download-artifact@v2
125+
node-version: '16.x'
126+
- uses: actions/download-artifact@v3
130127
with:
131128
name: build
132129
- name: unzip
133130
run: unzip build.zip -d .
134-
- uses: actions/download-artifact@v2
131+
- uses: actions/download-artifact@v3
135132
with:
136133
name: checked-nonmin-bundle
137134
path: packages/sdk-js/dist
135+
- run: basename /packages/sdk-js/dist/
138136
- name: Configure AWS credentials
139-
uses: aws-actions/configure-aws-credentials@v1
137+
uses: aws-actions/configure-aws-credentials@v2
140138
with:
141139
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
142140
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -145,10 +143,6 @@ jobs:
145143
- name: Login to Amazon ECR
146144
id: login-ecr
147145
uses: aws-actions/amazon-ecr-login@v1
148-
- uses: actions/setup-node@v2
149-
with:
150-
node-version: '16.x'
151-
- run: basename /packages/sdk-js/dist/
152146
- name: pull node image
153147
env:
154148
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}

‎.github/workflows/tests-polkadot-deps.yml‎

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,14 @@ jobs:
1616
node-version: [14.x, 16.x]
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
with:
2121
ref: master
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v3
2424
with:
2525
node-version: ${{ matrix.node-version }}
26-
- name: Get yarn cache directory path
27-
id: yarn-cache-dir-path
28-
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
29-
- uses: actions/cache@v2
30-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
31-
with:
32-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
33-
key: ${{ runner.os }}-${{ matrix.node-version }}-updated-dependencies
34-
restore-keys: |
35-
${{ runner.os }}-${{ matrix.node-version }}-updated-dependencies
36-
${{ runner.os }}-${{ matrix.node-version }}-yarn-
26+
cache: 'yarn'
3727

3828
- name: delete yarn.lock
3929
run: rm -f yarn.lock
@@ -57,7 +47,7 @@ jobs:
5747
- name: zip build
5848
run: zip -r build.zip .
5949
- name: upload build
60-
uses: actions/upload-artifact@v2
50+
uses: actions/upload-artifact@v3
6151
with:
6252
name: build-${{ matrix.node-version }}
6353
path: build.zip
@@ -77,7 +67,7 @@ jobs:
7767
continue-on-error: ${{ matrix.required == 'optional' }}
7868

7969
steps:
80-
- uses: actions/download-artifact@v2
70+
- uses: actions/download-artifact@v3
8171
with:
8272
name: build-${{ matrix.node-version }}
8373
- name: unzip
@@ -101,14 +91,14 @@ jobs:
10191
continue-on-error: ${{ matrix.required == 'optional' }}
10292

10393
steps:
104-
- uses: actions/download-artifact@v2
94+
- uses: actions/download-artifact@v3
10595
with:
10696
name: build-14.x
10797
- name: unzip
10898
run: unzip build.zip -d .
10999

110100
- name: Configure AWS credentials
111-
uses: aws-actions/configure-aws-credentials@v1
101+
uses: aws-actions/configure-aws-credentials@v2
112102
with:
113103
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
114104
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)