mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-06-09 06:17:07 +00:00
Packaging workflow, so that dist/ doesn't get out of date
This commit is contained in:
parent
e673e43e70
commit
b6dbec51a5
1 changed files with 30 additions and 0 deletions
30
.github/workflows/package.yml
vendored
Normal file
30
.github/workflows/package.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
name: Package
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Package distribution file
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
ref: master
|
||||
- name: Package
|
||||
run: |
|
||||
npm ci
|
||||
npm test
|
||||
npm run package
|
||||
- name: Commit
|
||||
run: |
|
||||
git config --global user.name "GitHub Actions"
|
||||
git remote set-url origin https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY
|
||||
git add dist/
|
||||
git commit -m "Update dist" || echo "No changes to commit"
|
||||
git push origin HEAD:master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue