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

ENG-2642 Updated YAML files to fix set-output deprecation #36

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: 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
Loading