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 deleted file mode 100644 index 582dc0f..0000000 --- a/.github/workflows/version.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: 'Bump Version' - -on: - push: - branches: - - 'main' - -jobs: - bump-version: - name: 'Bump version and publish' - # 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: - skip-commit: 'true' - skip-tag: 'true' - 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