diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59281a7..8cc63c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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}} diff --git a/package.json b/package.json index ce18c59..56926cf 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "scripts": { "build": "yarn build:icon", "build:icon": "node scripts/build.js", - "prepublishOnly": "yarn build", "test": "vitest run" }, "repository": {