mirror of
https://github.com/videojs/video.js.git
synced 2025-02-02 11:34:50 +02:00
chore: Update CI and release workflows (#8214)
* Update deprecated set-output command. * Update actions to use Node 16 rather than Node 12.
This commit is contained in:
parent
c1a1f9cb5d
commit
882f3af3b2
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
||||
should-skip-job: ${{steps.skip-check.outputs.should_skip}}
|
||||
steps:
|
||||
- id: skip-check
|
||||
uses: fkirc/skip-duplicate-actions@v2.1.0
|
||||
uses: fkirc/skip-duplicate-actions@v5.3.0
|
||||
with:
|
||||
github_token: ${{github.token}}
|
||||
|
||||
@ -30,10 +30,10 @@ jobs:
|
||||
runs-on: ${{matrix.os}}
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: read node version from .nvmrc
|
||||
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
||||
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
id: nvm
|
||||
|
||||
@ -47,7 +47,7 @@ jobs:
|
||||
run: pulseaudio -D
|
||||
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '${{steps.nvm.outputs.NVMRC}}'
|
||||
cache: npm
|
||||
@ -61,7 +61,7 @@ jobs:
|
||||
run: npm i --prefer-offline --no-audit
|
||||
|
||||
- name: run npm test
|
||||
uses: GabrielBB/xvfb-action@v1
|
||||
uses: coactions/setup-xvfb@v1
|
||||
with:
|
||||
run: npm run test
|
||||
|
||||
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -13,19 +13,19 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
# We need to fetch the entire history as conventional-changelog needs
|
||||
# access to any number of git commits to build the changelog.
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: read node version from .nvmrc
|
||||
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
||||
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
id: nvm
|
||||
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '${{steps.nvm.outputs.NVMRC}}'
|
||||
cache: npm
|
||||
@ -45,7 +45,7 @@ jobs:
|
||||
run: node -e "console.log(require('./build/current-changelog.js')())" > CHANGELOG-LATEST.md
|
||||
|
||||
- name: get dashed package version for netlify
|
||||
run: echo ::set-output name=VERSION::$(node -e "process.stdout.write(require('./package.json').version.split('.').join('-'))")
|
||||
run: echo "VERSION=$(node -e "process.stdout.write(require('./package.json').version.split('.').join('-'))")" >> $GITHUB_OUTPUT
|
||||
id: get-version
|
||||
shell: bash
|
||||
if: env.NETLIFY_BASE != ''
|
||||
@ -76,13 +76,13 @@ jobs:
|
||||
S3_KEY: ${{ secrets.AWS_S3_KEY }}
|
||||
steps:
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
|
||||
- name: npm install video.js
|
||||
run: npm install "video.js@$VJS_VERSION"
|
||||
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
uses: aws-actions/configure-aws-credentials@v2
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user