Skip to content

Commit

Permalink
chore: bump to v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
poohcom1 committed Jun 6, 2024
1 parent ea14491 commit 0e6c363
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

jobs:
build-and-release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: yarn

- name: Build with webpack
run: yarn prod

- name: Get the bundle.js content
id: get-bundle
run: |
echo "bundle_content<<EOF" >> $GITHUB_ENV
cat dist/twitterArtTags.user.js >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Get commit messages
id: get-commits
run: |
commits=$(git log -1 --pretty=format:"%H")
changes=$(git log --pretty=format:"* %s" ${commits}..HEAD)
echo "changes=$changes" >> $GITHUB_ENV
- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
```javascript
${{ env.bundle_content }}
```
# Changes
${{ env.changes }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "twitter-art-tags",
"author": "poohcom1",
"description": "",
"version": "1.1.1",
"version": "1.1.2",
"private": true,
"engines": {
"node": ">=18.20.3"
Expand Down

0 comments on commit 0e6c363

Please sign in to comment.