From b3e98949ef3ad76f2db71db353df3756b7094770 Mon Sep 17 00:00:00 2001 From: hasan genc Date: Tue, 14 Sep 2021 11:47:26 +0300 Subject: [PATCH] Add betapublish action. --- .github/workflows/betapublish.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/betapublish.yml diff --git a/.github/workflows/betapublish.yml b/.github/workflows/betapublish.yml new file mode 100644 index 0000000..0388161 --- /dev/null +++ b/.github/workflows/betapublish.yml @@ -0,0 +1,33 @@ +name: Publish Package +on: + release: + types: [prereleased] +jobs: + Publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '12.x' + registry-url: 'https://registry.npmjs.org' + - name: Install + run: npm install + - name: Test + run: npm run test + - uses: codecov/codecov-action@v2 + with: + files: coverage/*.json + flags: unittests + name: react-carousel-codecov + fail_ci_if_error: true + verbose: true + - name: Build + run: npm run build + - name: Publish + run: npm publish --access=public --tag beta + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}