diff --git a/.github/workflows/publish-npm-package.yml b/.github/workflows/publish-npm-package.yml index b706ddd..467b70f 100644 --- a/.github/workflows/publish-npm-package.yml +++ b/.github/workflows/publish-npm-package.yml @@ -5,7 +5,7 @@ on: types: [created] jobs: - build: + publish: runs-on: ubuntu-latest steps: - name: Checkout @@ -18,11 +18,7 @@ jobs: scope: '@zerogachis' - name: Update package version - uses: mingjun97/file-regex-replace@v1 - with: - regex: '"version": "([0-9.]*)"' - replacement: '"version": "${{ github.ref_name }}"' - include: 'package.json' + run: npm version --no-git-tag-version ${{ github.ref_name }} - name: Publish if: startsWith(github.ref, 'refs/tags/') diff --git a/package.json b/package.json index 1ef383d..3ae861b 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { "name": "@zerogachis/smartway-design-token", - "version": "0.0.0", + "version": "0.0.1", "description": "Smartway design tokens", "main": "tokens.json", + "scripts": { + "test": "echo \"Test\" && exit 1" + }, "repository": { "type": "git", "url": "git+https://github.com/ZeroGachis/smartway-design-token.git"