luanorlandi / gladosjs

Development of algorithms to solve puzzles and compete contest in Condingame
MIT License
0 stars 1 forks source link

Semantic-release #3

Open luanorlandi opened 4 years ago

luanorlandi commented 4 years ago

Generate Changelog automatically and pipeline for releases. This should be linked somehow with commit messages and lint

https://github.com/semantic-release/changelog

luanorlandi commented 4 years ago

Pipeline should be something like this .github/workflows/publish.yml (the env var NPM_AUTH_TOKEN is already added in the repo):

name: CI
push:
  branches:
    - master
jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 12
      - run: npm ci
      - run: npm run build
      - run: npm run lint
      - run: npm test
      - run: npm run publish
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}