This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
chore(deps): update semantic-release monorepo #501
Workflow file for this run
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: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
Test: | |
strategy: | |
fail-fast: false | |
matrix: | |
node_version: ['lts/*', '*'] | |
jasmine_version: ['^2', '^3', '^4'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Install Jasmine ${{ matrix.jasmine_version }} | |
run: npm install --no-save jasmine@${{ matrix.jasmine_version }} | |
- name: Run Tests 👩🏽💻 | |
run: npm run test | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint ✨ | |
run: npm run lint | |
Release: | |
needs: [Test, Lint] | |
if: | | |
github.ref == 'refs/heads/master' && | |
github.event.repository.fork == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Release 🎉 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release |