Skip to content

Commit

Permalink
fix(ci): remove deprecated syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tduyng committed Apr 1, 2023
1 parent 13ac9a6 commit b1cfdec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: yarn-cache
Expand All @@ -44,7 +44,7 @@ jobs:
CI: true

- name: Coveralls Parallel
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node-version }}
Expand All @@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
strategy:
matrix:
node-version: [18.x]

if: ${{ github.actor == 'pebie' || github.actor == 'Crow-EH' || github.actor == 'fthouraud' || github.actor == 'leguellec' || github.actor == 'rande' }}

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: yarn-cache
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Bump the version using input strategy
run: yarn version --new-version ${{ github.event.inputs.strategy }} --no-git-tag-version

- name: Update changelog
- name: Update changelog
id: changelog
run: |
CHANGELOG=$(yarn conventional-changelog -p conventionalcommits -r -u 0)
Expand All @@ -53,12 +53,12 @@ jobs:
BODY="${BODY//'%'/'%25'}"
BODY="${BODY//$'\n'/'%0A'}"
BODY="${BODY//$'\r'/'%0D'}"
echo "::set-output name=body::${BODY}"
echo "{body}=${BODY}" >> $GITHUB_OUTPUT
- name: Log changes
run: |
echo "The changelog will be : ${{ steps.changelog.outputs.body }}"
- name: Get version
id: package-version
uses: martinbeentjes/[email protected]
Expand All @@ -85,7 +85,7 @@ jobs:
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish to NPM
run: npm publish --access public
env:
Expand Down

0 comments on commit b1cfdec

Please sign in to comment.