Commit Graph

16 Commits

Author SHA1 Message Date
Matthieu Morin 17693630e3 name: Node.js Package Lint, Test and Publish
on:
  push:
    branches:
      - 'master'

jobs:
  lint-and-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
        with:
          fetch-depth: 1
      - uses: actions/setup-node@v1
        with:
          node-version: 12
      - run: yarn
      - run: yarn lint
      - run: yarn test

  build-and-publish-gpr:
    needs: lint-and-test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
        with:
          fetch-depth: 1
      - uses: actions/setup-node@v1
        with:
          node-version: 12
          registry-url: https://npm.pkg.github.com/
      - run: yarn
      - run: yarn build
      - run: yarn semantic-release
        env:
          NPM_TOKEN: ${{secrets.NPM_TOKEN}}
          GH_TOKEN: ${{secrets.GH_TOKEN}}
          CI: true

  build-and-publish-npm:
    needs: build-and-publish-gpr
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
        with:
          fetch-depth: 1
      - uses: actions/setup-node@v1
        with:
          node-version: 12
          registry-url: https://registry.npmjs.org/
      - run: yarn
      - run: yarn build
      - run: yarn semantic-release
        env:
          NPM_TOKEN: ${{secrets.NPM_TOKEN}}
          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
          GH_TOKEN: ${{secrets.GH_TOKEN}}
add npm run all to package.json, local config delete
2024-06-04 11:39:12 +02:00
Matthieu Morin 48991cde98 fix(eslint config): fixed flat config, specific plugins to respective langs 2024-06-04 10:43:21 +02:00
Matthieu Morin f586a31868 npm-run-all not working with package.json config -> .czrc# 2024-06-04 09:51:54 +02:00
Matthieu Morin d76126698c lock and test 2024-06-04 00:00:58 +02:00
Matthieu Morin 0cb4344bac all scripts 2024-06-04 00:00:29 +02:00
Matthieu Morin 48fc2d8b8f tsconfig outdir dist 2024-06-04 00:00:14 +02:00
Matthieu Morin c437b24979 gitignore husky remove 2024-06-03 23:59:58 +02:00
Matthieu Morin 8f12b17d5e husky precommit lint-staged 2024-06-03 23:59:44 +02:00
Matthieu Morin 7857fae017 eslint new flat config with plugins 2024-06-03 23:59:20 +02:00
Matthieu Morin d6b7bc3e35 set up prettier 2024-06-03 23:59:07 +02:00
Matthieu Morin acf0530555 set up jest 2024-06-03 23:58:47 +02:00
Matthieu Morin 7a54de2d48 jest tests 2024-06-01 14:39:23 +02:00
Matthieu Morin 4bbbf68f64 gitignore more 2024-06-01 14:36:33 +02:00
Matthieu Morin d949727b38 setup ts, commitizen 2024-06-01 11:41:14 +02:00
Matthieu Morin 98cfb26cf4 my universal gitignore 2024-05-31 20:10:04 +02:00
Matthieu Morin 5a0103690e Initial commit 2024-05-20 21:36:28 +00:00