typescript package bundler with tsup
Go to file Use this template
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
.husky husky precommit lint-staged 2024-06-03 23:59:44 +02:00
src lock and test 2024-06-04 00:00:58 +02:00
.czrc npm-run-all not working with package.json config -> .czrc# 2024-06-04 09:51:54 +02:00
.gitignore gitignore husky remove 2024-06-03 23:59:58 +02:00
.prettierignore set up prettier 2024-06-03 23:59:07 +02:00
.prettierrc set up prettier 2024-06-03 23:59:07 +02:00
LICENSE Initial commit 2024-05-20 21:36:28 +00:00
README.md Initial commit 2024-05-20 21:36:28 +00:00
eslint.config.js fix(eslint config): fixed flat config, specific plugins to respective langs 2024-06-04 10:43:21 +02:00
jest.config.cjs set up jest 2024-06-03 23:58:47 +02:00
package.json name: Node.js Package Lint, Test and Publish 2024-06-04 11:39:12 +02:00
pnpm-lock.yaml lock and test 2024-06-04 00:00:58 +02:00
tsconfig.json tsconfig outdir dist 2024-06-04 00:00:14 +02:00

README.md

TS-Lib-tsup

typescript package bundler with tsup