From 18d5360cabb397edfa50f3c162068bc17f0809d4 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 23 Apr 2022 09:24:41 +0200 Subject: [PATCH] Add publish workflow on release create --- .github/workflows/publish.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..5fbcecd3a --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: Publish package + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '12.x' + registry-url: 'https://registry.npmjs.org' + cache: 'yarn' + - run: yarn --frozen-lockfile + - run: npm run lint + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file