diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fa95a0b..c48c3ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,8 @@ --- on: - push: - branches: - - master + release: + types: + - published name: Build and Publish jobs: @@ -51,4 +51,4 @@ jobs: - run: yarn - run: yarn publish --non-interactive env: - NODE_AUTH_TOKEN: ${{secrets.NODE_GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.node_github_token}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 960f5a7..5884cac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,9 @@ --- -on: [pull_request] +on: + push: + branches: + - main + pull_request: name: Run tests jobs: @@ -19,4 +23,4 @@ jobs: - run: yarn build name: Compile Typescript - run: yarn test - name: Run tests \ No newline at end of file + name: Run tests