Skip to content

Commit

Permalink
Add run build step in GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmadlou committed Sep 2, 2024
1 parent 6bec436 commit 0215e4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ jobs:
uses: actions/setup-node@v3
- name: Install npm dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Set Git author identity
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
- name: Bump package version
run: |
npm version minor
- name: Publish to npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
run: |
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm version minor
npm publish
git add .
git push origin --tags
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"vue3",
"vuejs"
],
"version": "0.1.0",
"version": "0.2.0",
"type": "module",
"files": [
"dist/",
Expand Down

0 comments on commit 0215e4b

Please sign in to comment.