Skip to content

chore(action): pin dependencies (master) #4883

chore(action): pin dependencies (master)

chore(action): pin dependencies (master) #4883

Workflow file for this run

name: Node.js CI
'on':
push:
branches:
- master
- alpha
- beta
- 'renovate/**'
pull_request:
types:
- opened
- synchronize
env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
id: nvm
- name: Setup node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- uses: bahmutov/npm-install@v1
- run: npm test
env:
CYPRESS_RECORD_KEY: '${{ secrets.CYPRESS_RECORD_KEY }}'
- name: Upload coverage data to Codecov
run: 'npm run coverage:report'
release:
needs: verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
id: nvm
- name: Setup node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- uses: bahmutov/npm-install@v1
- name: semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_PUBLISH_TOKEN }}'
storybook:
if: github.ref == 'refs/heads/master'
needs: verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
id: nvm
- name: Setup node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- uses: bahmutov/npm-install@v1
- run: npm run deploy:netlify
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}