Skip to content

Commit

Permalink
ENG-2642 Updated YAML files to fix set-output deprecation (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
pritansh authored Nov 20, 2023
1 parent 2e606b4 commit f8dbb42
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
- uses: actions/checkout@v3
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "dir<<$EOF" >> $GITHUB_OUTPUT
echo "$(yarn cache dir)" >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
Expand Down Expand Up @@ -43,7 +47,11 @@ jobs:
- uses: actions/checkout@v3
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "dir<<$EOF" >> $GITHUB_OUTPUT
echo "$(yarn cache dir)" >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
Expand All @@ -59,12 +67,17 @@ jobs:
- name: Setup env vars
id: ownEnvVars
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
# Set PACKAGE_VERSION
PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
echo ::set-output name=PACKAGE_VERSION::$PACKAGE_VERSION
echo "PACKAGE_VERSION<<$EOF" >> $GITHUB_OUTPUT
echo "$PACKAGE_VERSION" >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT
# Set COMMIT_LOG
COMMIT_LOG=`git log $(git describe --tags --abbrev=0)..HEAD --date=iso-local --format='%cd %h %an - %s '`
echo ::set-output name=COMMIT_LOG::$COMMIT_LOG
echo "COMMIT_LOG<<$EOF" >> $GITHUB_OUTPUT
echo "$COMMIT_LOG" >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT
- name: npm publish
run: npm publish
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-plural",
"version": "0.6.8",
"version": "0.6.9",
"description": "🎨 How plural paints its code.",
"main": "index.js",
"files": [
Expand Down

0 comments on commit f8dbb42

Please sign in to comment.