8000 chore: Update CI and release workflows (#431) · videojs/mux.js@dc56f1b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit dc56f1b

Browse files
authored
chore: Update CI and release workflows (#431)
* Update deprecated set-output command. * Update actions to use Node 16 rather than Node 12.
1 parent 055204a commit dc56f1b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
should-skip-job: ${{steps.skip-check.outputs.should_skip}}
1212
steps:
1313
- id: skip-check
14-
uses: fkirc/skip-duplicate-actions@v2.1.0
14+
uses: fkirc/skip-duplicate-actions@v5.3.0
1515
with:
1616
github_token: ${{github.token}}
1717

@@ -30,10 +30,10 @@ jobs:
3030
runs-on: ${{matrix.os}}
3131
steps:
3232
- name: checkout code
33-
uses: actions/checkout@v2
33+
uses: actions/checkout@v3
3434

3535
- name: read node version from .nvmrc
36-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
36+
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
3737
shell: bash
3838
id: nvm
3939

@@ -47,7 +47,7 @@ jobs:
4747
run: pulseaudio -D
4848

4949
- name: setup node
50-
uses: actions/setup-node@v2
50+
uses: actions/setup-node@v3
5151
with:
5252
node-version: '${{steps.nvm.outputs.NVMRC}}'
5353
cache: npm
@@ -61,12 +61,12 @@ jobs:
6161
run: npm i --prefer-offline --no-audit
6262

6363
- name: run npm test
64-
uses: GabrielBB/xvfb-action@v1
64+
uses: coactions/setup-xvfb@v1
6565
with:
6666
run: npm run test
6767

6868
- name: coverage
69-
uses: codecov/codecov-action@v1
69+
uses: codecov/codecov-action@v3
7070
with:
7171
token: ${{secrets.CODECOV_TOKEN}}
7272
files: './test/dist/coverage/coverage-final.json'

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
# We neeed to fetch the entire history as conventional-changelog needs
1919
# access to any number of git commits to build the changelog.
2020
with:
2121
fetch-depth: 0
2222

2323
- name: read node version from .nvmrc
24-
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
24+
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
2525
shell: bash
2626
id: nvm
2727

2828
- name: setup node
29-
uses: actions/setup-node@v2
29+
uses: actions/setup-node@v3
3030
with:
3131
node-version: '${{steps.nvm.outputs.NVMRC}}'
3232
cache: npm
@@ -43,7 +43,7 @@ jobs:
4343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4444

4545
- name: Check if this is a pre-release
46-
run: echo ::set-output name=IS_PRE_RELEASE::$(npx -p not-prerelease is-prerelease && echo "true" || echo "false")
46+
run: echo "IS_PRE_RELEASE=$(npx -p not-prerelease is-prerelease && echo "true" || echo "false")" >> $GITHUB_OUTPUT
4747
id: pre-release-check
4848

4949
- name: truncate CHANGELOG.md so that we can get the current versions changes only
@@ -53,7 +53,7 @@ jobs:
5353
run: npx -p @videojs/update-changelog vjs-update-changelog --run-on-prerelease
5454

5555
- name: get dashed package version for netlify
56-
run: echo ::set-output name=VERSION::$(node -e "process.stdout.write(require('./package.json').version.split('.').join('-'))")
56+
run: echo "VERSION=$(node -e "process.stdout.write(require('./package.json').version.split('.').join('-'))")" >> $GITHUB_OUTPUT
5757
id: get-version
5858
shell: bash
5959
if: env.NETLIFY_BASE != ''

0 commit comments

Comments
 (0)
0