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

chore: release 0.32.1 #757

Merged
merged 4 commits into from
May 24, 2023
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
4 changes: 2 additions & 2 deletions .github/actions/cached-image-pull/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ runs:
env:
CACHE_PATH: ${{ inputs.cache-directory }}${{ inputs.cache-file }}.tar
run: |
echo "::set-output name=path::$CACHE_PATH"
echo "path=$CACHE_PATH" >> $GITHUB_OUTPUT

- name: check image cache
id: image-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.image-file.outputs.path }}
key: image-cache-${{ inputs.image }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/devpackpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@ jobs:
runs-on: ubuntu-latest
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && github.repository == 'kiltprotocol/sdk-js'"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# fetch-depth 0 and token needed to push changes on the package.json files back.
fetch-depth: 0
token: ${{ secrets.REPO_ACCESS_TOKEN }}
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Bump prerelease version of root package
run: npm version --no-git-tag-version prerelease
- name: Get current package version
id: package_version
run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")"
run: echo "package_version=$(node -pe "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Set all other packages to same version
env:
PACKAGE_VERSION: ${{ steps.package_version.outputs.package_version }}
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/docpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
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.
with:
persist-credentials: false
uses: actions/checkout@v3

- name: Install and Build
run: |
yarn install
yarn build:docs

- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/api # The folder the action should deploy to.
branch: gh-pages # The branch the action should deploy to.
folder: docs/api # The folder the action should deploy to.
12 changes: 7 additions & 5 deletions .github/workflows/npmpublish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build
- run: yarn test:ci
Expand All @@ -18,10 +19,11 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build packages
Expand All @@ -30,7 +32,7 @@ jobs:
run: yarn run bundle
- name: Get current package version
id: package_version
run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")"
run: echo "package_version=$(node -pe "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Publish to NPM
run: yarn run publish --tag rc
env:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build
- run: yarn test:ci
Expand All @@ -18,10 +19,11 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build packages
Expand All @@ -30,7 +32,7 @@ jobs:
run: yarn run bundle
- name: Get current package version
id: package_version
run: echo "::set-output name=package_version::$(node -pe "require('./package.json').version")"
run: echo "package_version=$(node -pe "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Publish to NPM
run: yarn run publish --tag latest
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 14 additions & 20 deletions .github/workflows/test-node-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Use Node.js 14
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
Expand All @@ -30,7 +30,7 @@ jobs:
- name: zip build
run: zip -r build.zip .
- name: upload build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build
path: build.zip
Expand All @@ -51,22 +51,20 @@ jobs:
needs: cache_imgs

steps:
- name: Log out node version
run: node --version
- name: Use Node.js 14
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Log out node version
run: node --version
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: build
- name: unzip
run: unzip build.zip -d .

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -99,19 +97,19 @@ jobs:
needs: build

steps:
- name: Use Node.js 14
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: build
- name: unzip
run: unzip build.zip -d .
- name: yarn bundle
run: yarn bundle
- name: upload bundle artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: checked-nonmin-bundle
path: packages/sdk-js/dist/sdk-js.umd.js
Expand All @@ -122,21 +120,21 @@ jobs:
needs: [cache_imgs, bundle_cache]

steps:
- name: Use Node.js 14
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/download-artifact@v2
node-version: '16.x'
- uses: actions/download-artifact@v3
with:
name: build
- name: unzip
run: unzip build.zip -d .
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: checked-nonmin-bundle
path: packages/sdk-js/dist
- run: basename /packages/sdk-js/dist/
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -145,10 +143,6 @@ jobs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- run: basename /packages/sdk-js/dist/
- name: pull node image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
Expand Down
24 changes: 7 additions & 17 deletions .github/workflows/tests-polkadot-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,14 @@ jobs:
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.node-version }}-updated-dependencies
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-updated-dependencies
${{ runner.os }}-${{ matrix.node-version }}-yarn-
cache: 'yarn'

- name: delete yarn.lock
run: rm -f yarn.lock
Expand All @@ -57,7 +47,7 @@ jobs:
- name: zip build
run: zip -r build.zip .
- name: upload build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build-${{ matrix.node-version }}
path: build.zip
Expand All @@ -77,7 +67,7 @@ jobs:
continue-on-error: ${{ matrix.required == 'optional' }}

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: build-${{ matrix.node-version }}
- name: unzip
Expand All @@ -101,14 +91,14 @@ jobs:
continue-on-error: ${{ matrix.required == 'optional' }}

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: build-14.x
- name: unzip
run: unzip build.zip -d .

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
Loading