From a0479b5b4a16ba97534208fe1e19c969c3dd0338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berk=20Alt=C4=B1ok?= Date: Sun, 3 Jan 2021 23:25:14 +0300 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..185a7c5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: NPM Berk + +on: + release: + types: [ published ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: npm install + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}