diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..5a90ac8d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: publish +on: + push: + branches: [production] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16.x + - run: yarn + - run: yarn build + - run: yarn test + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }}