Skip to content

fix: README.md

fix: README.md #16

Workflow file for this run

name: Template CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
Test_generator:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version:
- 18.x
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Run Tests 🧪
working-directory: ./packages/generator
run: npm run test
Release_template_version:
runs-on: ubuntu-latest
needs:
- Test_generator
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Semantic release 🚀
working-directory: ./
run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}