From 032ac1eaf49f38c0bbe6ce6542a582eac3a4808c Mon Sep 17 00:00:00 2001 From: Viktor <8722478+binjospookie@users.noreply.github.com> Date: Sat, 6 Jan 2024 16:41:55 +0300 Subject: [PATCH] added: automate release --- .github/workflows/publish.yml | 18 ++++++++++++++++++ package.json | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml 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",