diff --git a/.github/npm-publish.yml b/.github/npm-publish.yml new file mode 100644 index 0000000..2d6d613 --- /dev/null +++ b/.github/npm-publish.yml @@ -0,0 +1,25 @@ +name: Npm Publish +on: + release: + types: [published] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v1 + with: + node-version: 22 + registry-url: https://registry.npmjs.org/ + + - name: Install Dependencies + run: yarn + + - name: Build project + run: yarn build + + - name: Publish package + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} \ No newline at end of file diff --git a/package.json b/package.json index 9a8df6c..f0579dc 100644 --- a/package.json +++ b/package.json @@ -24,5 +24,8 @@ }, "dependencies": { "openapi3-ts": "^4.4.0" + }, + "volta": { + "node": "22.11.0" } -} +} \ No newline at end of file