Skip to content

Commit 681289d

Browse files
author
Léo Guillaume
committed
Auto stash before checking out "origin/main"
1 parent 42ae69d commit 681289d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,18 @@ jobs:
3131
git commit -m "🤖 Bump version to %s" || echo "No changes to commit"
3232
git remote set-url origin https://${{ secrets.ACCESS_TOKEN }}@github.com/Leoglme/node-nlp-typescript.git
3333
git push
34-
npm version patch -m "🤖 Bump version to %s"
3534
env:
3635
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
3736
- name: Create Release Tag
3837
id: create_tag
3938
run: |
4039
VERSION=$(node -p "require('./package.json').version")
41-
VERSIOND=$(node -p "require('./package.json')")
42-
echo "la version est: $VERSION"
43-
echo "la version estd: $VERSIOND"
44-
echo "::set-output name=version::v$VERSION"
40+
git push --tags
41+
echo "version=v$VERSION >> $GITHUB_OUTPUT"
4542
env:
4643
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
4744
- name: Create GitHub Release
48-
uses: softprops/action-gh-release@v1
49-
with:
50-
body: 'Release ${{ steps.create_tag.outputs.version }}'
45+
run: echo "Release $GITHUB_OUTPUT"
5146
env:
5247
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
5348
- name: Publish package on NPM 📦

0 commit comments

Comments
 (0)