Skip to content

Commit

Permalink
update package-lock after build
Browse files Browse the repository at this point in the history
  • Loading branch information
echo-bravo-yahoo authored and github-actions[bot] committed Oct 25, 2024
1 parent 617b6ce commit 9e9f27b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Publish to NPM

on:
Expand All @@ -20,7 +17,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
# Fetch the last 2 commits instead of just 1. (Fetching just 1 commit would overwrite the whole history)
# Fetch the last 2 commits instead of just 1. (Fetching just 1 commit
# would overwrite the whole history)
fetch-depth: 2
- name: Use Node.js (22.x)
uses: actions/setup-node@v4
Expand All @@ -35,11 +33,16 @@ jobs:
run: |
echo "message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
# Commit changes to package.json back to the repository
# Commit changes to package.json and package-lock.json back to the
# repository Since we install dependencies with `npm ci`, the only update
# to package-lock should be updating the version of this package. If we
# don't commit that, the next dev to run `npm install` in the repo will
# have a package-lock.json change that updates the version to... the N-1
# version.
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_author: ${{ steps.last-commit.outputs.author }}
file_pattern: 'package.json'
file_pattern: 'package.json package-lock.json'
commit_message: ${{ steps.last-commit.outputs.message }}
commit_options: '--amend --no-edit'
push_options: '--force'
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fauna/typescript",
"version": "0.0.9",
"version": "0.0.10",
"description": "A collection of lint, format, and build configs used at Fauna for TypeScript projects.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9e9f27b

Please sign in to comment.