diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6192e30 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +name: Publish to npm + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20' + - run: npm ci + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 0f19cc2..c60cfde 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pure-index", "type": "module", - "version": "0.0.57", + "version": "1.0.0-next.0", "description": "Utility for monorepos. It helps to clean your packages of unused exports with ease", "main": "./dist/api/index.js", "types": "./dist/api/index.d.ts",