Skip to content

Commit

Permalink
manual trigger to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sheverniskiy committed May 28, 2022
1 parent 21b6856 commit 793e2d8
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: CI Publish

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
Expand All @@ -13,9 +12,22 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn run build
- run: yarn run test
- run: yarn publish --access public

- name: Install, build and test
run: |
yarn
yarn run build
yarn run test
- name: Increase version
run: yarn version

- name: Commit package.json with new version
uses: EndBug/add-and-commit@v9
with:
message: 'publish new version'

- name: Publish
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 793e2d8

Please sign in to comment.