chore(deps): update dependency semantic-release to v24 #348
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- name: Run tests 🧪 | |
# https://github.com/cypress-io/github-action | |
uses: cypress-io/github-action@v5 | |
with: | |
build: npm test | |
start: npm start | |
- name: Restore the data | |
run: git checkout ./cypress/fixtures/data.json | |
- name: Run JSON server tests 🧪 | |
uses: cypress-io/github-action@v5 | |
with: | |
# we have already installed all dependencies above | |
install: false | |
start: node ./cypress/fixtures/example-server.js | |
config: 'baseUrl=http://localhost:4000' | |
- name: Semantic Release 🚀 | |
if: github.ref == 'refs/heads/master' | |
uses: cycjimmy/semantic-release-action@v3 | |
with: | |
branch: master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |