diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5a97508..c2479dc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,8 +1,8 @@ name: Docs on: - push: - branches: [ main ] + release: + types: [published] jobs: docs: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d4e7dec..bc6167d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,12 +24,6 @@ jobs: - run: yarn - run: yarn lint - run: yarn build - - - name: Publish 🚀 - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} - - - run: git push + - run: yarn publish env: - github-token: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index 16fb2d5..d679686 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pinia-plugin-persist", - "version": "0.0.1", + "version": "0.0.4", "description": "Persist pinia state data in sessionStorage or other storages.", "main": "dist/pinia-plugin-persist.js", "module": "dist/pinia-plugin-persist.esm.js",