From e214aeb8a58cec914fc0483990b0e1db99b137f0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Mar 2020 22:16:28 +0400 Subject: Add GitHub Action Signed-off-by: Valentin Popov --- .github/workflows/publish.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/publish.yml (limited to '.github/workflows/publish.yml') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a73e8ea --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: CI + +on: + create: + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: install + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: build + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: publish -- cgit v1.2.3 From c2ad7f211efca19666f950529830f8d979ec0844 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Mar 2020 22:24:06 +0400 Subject: fix(actions): Added auth token Signed-off-by: Valentin Popov --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github/workflows/publish.yml') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a73e8ea..c812440 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,5 +17,6 @@ jobs: with: cmd: build - uses: borales/actions-yarn@v2.0.0 + auth-token: ${{ secrets.NPM_AUTH_TOKEN }} with: cmd: publish -- cgit v1.2.3 From 4431cd50b1846557e79ef005ff4b7f7c93b4e654 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Mar 2020 22:25:32 +0400 Subject: fix(actions): Updated auth token Signed-off-by: Valentin Popov --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/publish.yml') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c812440..29001f1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: CI +name: Publish on: create: @@ -17,6 +17,6 @@ jobs: with: cmd: build - uses: borales/actions-yarn@v2.0.0 - auth-token: ${{ secrets.NPM_AUTH_TOKEN }} + "auth-token": ${{ secrets.NPM_AUTH_TOKEN }} with: cmd: publish -- cgit v1.2.3 From f12fa08c4587dc862a17c781cff64ee9f17698bc Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Mar 2020 22:31:34 +0400 Subject: fix(actions): Used node action Signed-off-by: Valentin Popov --- .github/workflows/publish.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to '.github/workflows/publish.yml') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 29001f1..2eb82a2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,13 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: borales/actions-yarn@v2.0.0 + - uses: actions/setup-node@v1 with: - cmd: install - - uses: borales/actions-yarn@v2.0.0 - with: - cmd: build - - uses: borales/actions-yarn@v2.0.0 - "auth-token": ${{ secrets.NPM_AUTH_TOKEN }} - with: - cmd: publish + node-version: '13.x' + - run: yarn install + - run: yarn run build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} -- cgit v1.2.3 From bbc0fca98585049b28a61767ce6fafca2160cc60 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Mar 2020 22:36:31 +0400 Subject: fix(actions): Update auth action Signed-off-by: Valentin Popov --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.github/workflows/publish.yml') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2eb82a2..a588b42 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,6 +15,5 @@ jobs: node-version: '13.x' - run: yarn install - run: yarn run build - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc + - run: npm publish -- cgit v1.2.3