Skip to content

Commit

Permalink
chore: tag and release version
Browse files Browse the repository at this point in the history
  • Loading branch information
ebukaodini committed Mar 17, 2024
1 parent 8d67ca2 commit d7c8504
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ 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 }}"
env:
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 }}"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit d7c8504

Please sign in to comment.