From 8b0322f069bf8cc81f1262bdd7f0a96177a97ac2 Mon Sep 17 00:00:00 2001 From: Vivek Pandya Date: Tue, 3 Jan 2023 13:23:34 +0530 Subject: [PATCH] Use instead of set-output --- .github/workflows/ci.yml | 4 ++-- .github/workflows/deploy.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d4896c97e..0b07e59e17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -219,9 +219,9 @@ jobs: override: true # Compares whether the version in `package.json` matches the version in `Cargo.toml`. - id: js-version - run: echo "::set-output name=version::`jq .version ./bin/wasm-node/javascript/package.json`" + run: echo "version=`jq .version ./bin/wasm-node/javascript/package.json`" >> $GITHUB_OUTPUT - id: rust-version - run: echo "::set-output name=version::`cargo read-manifest --manifest-path=./bin/wasm-node/rust/Cargo.toml | jq .version`" + run: echo "version=`cargo read-manifest --manifest-path=./bin/wasm-node/rust/Cargo.toml | jq .version`" >> $GITHUB_OUTPUT - run: exit 1 if: ${{ steps.js-version.outputs.version == '' }} # Defensive test against mistakes in the CI script - run: exit 1 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 57a0fde55e..85c6115ec0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -135,9 +135,9 @@ jobs: profile: minimal - uses: Swatinem/rust-cache@v2 - id: compute-tag # Compute the tag that we might push. - run: echo "::set-output name=tag::light-js-deno-v`jq -r .version ./bin/wasm-node/javascript/package.json`" + run: echo "tag=light-js-deno-v`jq -r .version ./bin/wasm-node/javascript/package.json`" >> $GITHUB_OUTPUT - id: check-tag-exists # Check whether the tag already exists. - run: echo "::set-output name=num-existing::`git tag -l | grep ${{ steps.compute-tag.outputs.tag }} | wc -l`" + run: echo "num-existing=`git tag -l | grep ${{ steps.compute-tag.outputs.tag }} | wc -l`" >> $GITHUB_OUTPUT - run: npm install working-directory: ./bin/wasm-node/javascript - run: npm publish --unsafe-perm --dry-run