From a3040ef259fceaa5493e693c0a258b9f56f90774 Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:13:51 -0500 Subject: [PATCH 1/2] Revert "remove old npm publish script. Add new." --- .github/workflows/npm-publish.yml | 20 ++++++++++++++++++++ .github/workflows/version.yml | 5 ++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..6f336a2 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - "main" + +name: "Publish" +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.x + - run: npm ci + - run: npm test + - run: npm run build + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 582dc0f..a17311a 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -7,7 +7,7 @@ on: jobs: bump-version: - name: 'Bump version and publish' + name: 'Bump Version on main' # Prefix with "MAJOR:" to bump major # "MINOR:" or "FEAT:" bump minor # "PRE-ALPHA:", "PRE-BETA:", "PRE-RC:" bump pre-release version @@ -25,8 +25,7 @@ jobs: id: version-bump uses: 'phips28/gh-action-bump-version@master' with: - skip-commit: 'true' - skip-tag: 'true' + tag-prefix: 'v' minor-wording: 'MINOR,FEAT' major-wording: 'MAJOR,BREAKING' patch-wording: 'PATCH,FIXES' From edeafd3b37e743392c86cb1f9002f650bf2cd9ae Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:15:14 -0500 Subject: [PATCH 2/2] remove version bumper. Bump version manually --- .github/workflows/version.yml | 40 ----------------------------------- package.json | 4 ++-- 2 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/version.yml diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml deleted file mode 100644 index a17311a..0000000 --- a/.github/workflows/version.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: 'Bump Version' - -on: - push: - branches: - - 'main' - -jobs: - bump-version: - name: 'Bump Version on main' - # Prefix with "MAJOR:" to bump major - # "MINOR:" or "FEAT:" bump minor - # "PRE-ALPHA:", "PRE-BETA:", "PRE-RC:" bump pre-release version - # Anything else bumps patch version - runs-on: ubuntu-latest - - steps: - - name: 'Checkout source code' - uses: 'actions/checkout@v3' - with: - ref: ${{ github.ref }} - - name: 'cat package.json' - run: cat ./package.json - - name: 'Automated Version Bump' - id: version-bump - uses: 'phips28/gh-action-bump-version@master' - with: - tag-prefix: 'v' - minor-wording: 'MINOR,FEAT' - major-wording: 'MAJOR,BREAKING' - patch-wording: 'PATCH,FIXES' - rc-wording: 'PRE-ALPHA,PRE-BETA,PRE-RC' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: 'cat package.json' - run: cat ./package.json - - name: 'Output Step' - env: - NEW_TAG: ${{ steps.version-bump.outputs.newTag }} - run: echo "new tag $NEW_TAG" \ No newline at end of file diff --git a/package.json b/package.json index 910d2de..0126242 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "try-prisma", - "version": "1.0.53", + "version": "1.0.54", "description": "A CLI tool to help get you up and running with any Prisma example project.", "type": "module", "exports": "./dist/index.js", @@ -61,4 +61,4 @@ "valid-filename": "^4.0.0", "zod": "^3.21.2" } -} +} \ No newline at end of file