Skip to content

Commit 99ca3bd

Browse files
authored
Merge pull request Ciptex#58 from Ciptex/improve-docs
improve deployment scripts
2 parents 5bce184 + d186f9b commit 99ca3bd

File tree

3 files changed

+24
-19
lines changed

3 files changed

+24
-19
lines changed

.github/workflows/create_release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Create Release'
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
release:
9+
if: startsWith(github.ref, 'refs/tags/')
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Build Changelog
13+
id: github_release
14+
uses: mikepenz/release-changelog-builder-action@v3
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
18+
- name: Create Release
19+
uses: softprops/[email protected]
20+
with:
21+
body: ${{steps.github_release.outputs.changelog}}

.github/workflows/pull.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ jobs:
1515
with:
1616
node-version: 16
1717
cache: "npm"
18-
19-
18+
2019
- run: npm ci
2120
- run: npm run prepublishOnly
2221
- run: npm run test:update

.github/workflows/push.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
- uses: actions/checkout@v3
1111
with:
1212
ref: ${{ github.ref }}
13+
token: ${{ secrets.BOT_PAT_TOKEN }}
1314

1415
- name: Setup Node.js
1516
uses: actions/setup-node@v3
1617
with:
1718
node-version: 16
1819
cache: "npm"
19-
2020

2121
- run: npm ci
2222
- run: npm run prepublishOnly
@@ -28,22 +28,8 @@ jobs:
2828
uses: "phips28/gh-action-bump-version@master"
2929
with:
3030
tag-prefix: ''
31-
skip-tag: true
32-
skip-push: true
33-
skip-commit: true
3431
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
37-
- name: Push files and tag
38-
uses: Amraneze/[email protected]
39-
with:
40-
repository: ${{ github.repository }}
41-
branch_name: ${{ github.ref_name }}
42-
github_token: ${{ secrets.BOT_PAT_TOKEN }}
43-
commit_message: 'CI: build version ${{ steps.version-bump.outputs.newTag }} [actions skip]'
44-
tag_version: ${{ steps.version-bump.outputs.newTag }}
45-
files_to_commit: 'package.json'
46-
create_tag: true
32+
GITHUB_TOKEN: ${{ secrets.BOT_PAT_TOKEN }}
4733

4834
- name: 'Output Step'
4935
env:
@@ -54,5 +40,4 @@ jobs:
5440
uses: JS-DevTools/npm-publish@v1
5541
with:
5642
token: ${{ secrets.NPM_TOKEN }}
57-
5843

0 commit comments

Comments
 (0)