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
This commit is contained in:
parent
48991cde98
commit
17693630e3
10
package.json
10
package.json
|
@ -39,7 +39,7 @@
|
|||
"yo"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "npm run lint && npm run clean && npm run build:start",
|
||||
"build": "run-s lint clean build:start",
|
||||
"build:start": "tsup ./src/index.ts --format cjs,esm,iife --dts",
|
||||
"build:types-check": "tsc --project tsconfig.check.json",
|
||||
"build:types-temp": "tsup --dts-only --outDir temp -p src/node",
|
||||
|
@ -54,11 +54,6 @@
|
|||
"test:watch": "jest --watch",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.4.0",
|
||||
"@prettier/plugin-pug": "^3.0.0",
|
||||
|
@ -77,12 +72,13 @@
|
|||
"prettier-plugin-pkg": "^0.18.1",
|
||||
"prettier-plugin-svelte": "^3.2.3",
|
||||
"rimraf": "^5.0.7",
|
||||
"semantic-release": "^24.0.0",
|
||||
"svelte": "^4.2.17",
|
||||
"ts-jest": "^29.1.4",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsup": "^8.1.0",
|
||||
"typescript": "^5.4.5",
|
||||
"typescript-eslint": "^7.11.0"
|
||||
"typescript-eslint": "^7.12.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
|
|
Loading…
Reference in New Issue