diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 3b2683b..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Publish New Version - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '14.x' - registry-url: 'https://registry.npmjs.org' - - run: yarn install - - run: yarn test - - run: yarn build - - run: yarn publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 01a111b..a80b7a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,10 +1,10 @@ -name: Test +name: Build on: - push: - branches: [ master ] pull_request: - branches: [ master ] + types: [ opened, reopened, synchronize ] + push: + branches: [ main ] jobs: build: @@ -16,5 +16,4 @@ jobs: node-version: '14.x' registry-url: 'https://registry.npmjs.org' - run: yarn install - - run: cd dev && yarn install - - run: yarn test + - run: yarn build