Skip to content

Commit

Permalink
ci: run test before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
haruaki07 committed May 13, 2023
1 parent e8cd620 commit 9386ad6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: "true"

- uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
registry-url: https://registry.npmjs.org/
cache: "yarn"
- run: yarn install --frozen-lockfile

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Test
run: yarn test

- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"scripts": {
"build": "yarn build:icon",
"build:icon": "node scripts/build.js",
"prepublishOnly": "yarn build",
"test": "vitest run"
},
"repository": {
Expand Down

0 comments on commit 9386ad6

Please sign in to comment.