Skip to content

Commit 8581287

Browse files
committed
build: remove pull_request on the trigger
1 parent 723d5c4 commit 8581287

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/main.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
name: NPM Publish
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
66
automated_tests:
77
runs-on: ubuntu-latest
88
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && github.ref !== main"
99
steps:
1010
- uses: actions/checkout@v2
11-
1211
- name: Use Node.js 20.x
1312
uses: actions/setup-node@v1
1413
with:
1514
node-version: 20.x
16-
1715
- name: Cache node modules
1816
uses: actions/cache@v1
1917
with:
2018
path: node_modules
2119
key: yarn-deps-${{ hashFiles('yarn.lock') }}
2220
restore-keys: |
2321
yarn-deps-${{ hashFiles('yarn.lock') }}
24-
2522
- name: Run tests
2623
run: |
2724
yarn install --frozen-lockfile
2825
yarn test
29-
3026
release:
3127
runs-on: ubuntu-latest
3228
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"

0 commit comments

Comments
 (0)