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 e500a3a commit 0ae8cb1Copy full SHA for 0ae8cb1
.github/workflows/package.yml
@@ -0,0 +1,30 @@
1
+on:
2
+ push:
3
+ branches:
4
+ - master
5
+
6
+name: Package
7
8
+jobs:
9
+ check:
10
+ name: Package distribution file
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v1
15
+ with:
16
+ ref: master
17
+ - name: Package
18
+ run: |
19
+ npm ci
20
+ npm test
21
+ npm run package
22
+ - name: Commit
23
24
+ git config --global user.name "GitHub Actions"
25
+ git remote set-url origin https://x-access-token:[email protected]/$GITHUB_REPOSITORY
26
+ git add dist/
27
+ git commit -m "Update dist" || echo "No changes to commit"
28
+ git push origin HEAD:master
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments