Skip to content

Commit

Permalink
Update package-lock.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Nov 29, 2022
1 parent 278470a commit 0e1f58e
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/update-package-lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Configure git and update package-lock.json
run: |
git config user.email "typescriptbot@microsoft.com"
Expand All @@ -30,3 +27,30 @@ jobs:
if git commit -m "Update package-lock.json"; then
git push
fi
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm i
- run: npm test

createIssue:
runs-on: ubuntu-latest
if: ${{ failure() }}
needs: [build, test]
permissions:
contents: read # Apparently required to create issues
issues: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAGS: "@sheetalkamat"
steps:
- uses: actions/checkout@v3
- run: |
HASH=$(git log -1 --format=%h)
gh issue create --repo ${{ github.repository }} --title "package-lock.json update failed" --body "$TAGS Please check the errors after run on $HASH"

0 comments on commit 0e1f58e

Please sign in to comment.