diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 35c3829..19da640 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,19 +34,19 @@ jobs: - name: Lint run: npm run lint - # - name: Publish to npm - # id: publish_to_npm - # run: npm publish --access public --registry=https://registry.npmjs.org/ --tag latest --npm-token=${{ secrets.NPM_TOKEN }} - # env: - # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish to npm + id: publish_to_npm + run: npm publish --access public --registry=https://registry.npmjs.org/ --tag latest --npm-token=${{ secrets.NPM_TOKEN }} + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Extract version - # if: steps.publish_to_npm.outcome == 'success' + if: steps.publish_to_npm.outcome == 'success' id: extract_version uses: Saionaro/extract-package-version@v1.2.1 - name: Create tag - # if: steps.publish_to_npm.outcome == 'success' + if: steps.publish_to_npm.outcome == 'success' uses: rickstaa/action-create-tag@v1 with: tag: "v${{ steps.extract_version.outputs.version }}" @@ -54,7 +54,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create release - # if: steps.publish_to_npm.outcome == 'success' + if: steps.publish_to_npm.outcome == 'success' uses: softprops/action-gh-release@v1 with: tag_name: "v${{ steps.extract_version.outputs.version }}" diff --git a/package.json b/package.json index e6438f7..10ad7af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ebukaodini/scaffoldjs", - "version": "0.3.4", + "version": "0.3.5", "description": "Speed up coding with prebuilt and custom template files", "main": "src/index.js", "scripts": {