diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..59a36156 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Build and Release NPM Package + +on: + push: + branches: [main] + create: + tags: + - v* + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20' + - run: npm ci + - run: npm run build + # - run: npm test # Soon + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index 7960f433..da022208 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ scratch.js .vscode/ .idea/ coverage/ +.secrets