From 0bea6fd456ae23f76fae48c08098eeaf77144d8a Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 20 Aug 2023 13:55:28 -0400 Subject: [PATCH 1/3] Add release workflow --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..03c9394c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release + +on: + workflow_dispatch: ~ + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + cache: 'npm' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 228c9b4164b45414f584f557fdec967cd09c7656 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 20 Aug 2023 13:58:49 -0400 Subject: [PATCH 2/3] Move building to prepack and and add linting and testing to prepublish --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b944a0a..94b39b1a 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "bump": "gulp bump", "test": "nyc mocha", "watch": "nodemon --exec \"mocha\"", - "prepublishOnly": "npm run build && npm run build-dist", + "prepack": "npm run build && npm run build-dist", + "prepublishOnly": "npm run test && npm run lint", "cover-report": "open coverage/lcov-report/index.html", "cover-publish": "nyc mocha && codeclimate < coverage/lcov.info" }, From ee3f0f79f1f7364017712dffa2835dc1a8b6143f Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 20 Aug 2023 14:09:09 -0400 Subject: [PATCH 3/3] Fix package-lock.json --- package-lock.json | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5e1cea31..ff2ef1b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3306,18 +3306,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-config-prettier": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", - "integrity": "sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, "node_modules/eslint-config-standard": { "version": "17.1.0", "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-17.1.0.tgz",