Skip to content

Commit

Permalink
Merge pull request #574 from catho/QTM-666
Browse files Browse the repository at this point in the history
ci(QTM-666): Updated actions/checkout and setup-node to node v20 support
  • Loading branch information
MarcosViniciusPC authored Jul 17, 2024
2 parents 95d5cf3 + 0e2a61b commit f7328c5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/actions-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,21 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo NVMRC=$(cat .nvmrc) >> $GITHUB_OUTPUT
id: nvm
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version-file: '.nvmrc'

- name: Install the dependencies
run: yarn

- name: run storybook
- name: Run storybook
run: yarn storybook --smoke-test

- name: run unit tests
- name: Run unit tests
run: yarn test:components

- name: run the regression tests
- name: Run the regression tests
run: yarn build:regression
30 changes: 14 additions & 16 deletions .github/workflows/actions-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,57 +11,55 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo NVMRC=$(cat .nvmrc) >> $GITHUB_OUTPUT
id: nvm
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version-file: '.nvmrc'

- name: Install the dependencies
run: yarn

- name: run storybook
- name: Run storybook
run: yarn storybook --smoke-test

- name: run unit tests
- name: Run unit tests
run: yarn test:components

- name: run the regression tests
- name: Run the regression tests
run: yarn build:regression

publish:
needs: tests
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo NVMRC=$(cat .nvmrc) >> $GITHUB_OUTPUT
id: nvm
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version-file: '.nvmrc'

- name: Install the dependencies
run: yarn

- name: Build
run: yarn build
- name: setting npm token

- name: Setting NPM token
run: ./scripts/publish.sh
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish package
run: yarn semantic-release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_URL: 'https://api.github.com/'

- name: Deploy storybook to Github Pages
if: ${{ github.ref == 'refs/heads/master' }}
run: yarn deploy-storybook -- --ci
Expand Down

0 comments on commit f7328c5

Please sign in to comment.