We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2dcf1 commit 4afea48Copy full SHA for 4afea48
.github/workflows/pull_request.yaml
@@ -0,0 +1,24 @@
1
+# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+name: pull-request
5
6
+on:
7
+ pull_request:
8
+ branches: [ main ]
9
+jobs:
10
+ build-and-test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ - uses: actions/setup-node@v3
15
+ with:
16
+ node-version: 18
17
+ registry-url: https://npm.pkg.github.com/
18
+ scope: '@devrev'
19
+ - run: npm ci
20
+ - run: npm run build
21
+ - run: npm test --if-present
22
+ env:
23
+ NODE_AUTH_TOKEN: ${{secrets.GH_WRITE_PACKAGE_TOKEN}}
24
+ DEVREV_TOKEN: ${{ secrets.DEVREV_TOKEN }}
0 commit comments