Skip to content

Commit 8c03f5e

Browse files
committed
Merge branch 'release/1.0.6'
2 parents 8b1e032 + 9211743 commit 8c03f5e

File tree

4 files changed

+142
-70
lines changed

4 files changed

+142
-70
lines changed

.github/workflows/template.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Workflow Name
2+
name: Template
3+
4+
# Trigger the workflow on push events to the master branch
5+
on:
6+
push:
7+
branches: [ master ]
8+
9+
# Define jobs
10+
jobs:
11+
# Cleanup job
12+
cleanup:
13+
# Job runs on the latest Ubuntu version
14+
runs-on: ubuntu-latest
15+
16+
# Permissions
17+
permissions:
18+
contents: write
19+
20+
# Conditional check
21+
if: github.repository != 'nekofar/nextjs-lingui-template'
22+
23+
# Steps instances
24+
steps:
25+
- uses: actions/[email protected] # Checkout code
26+
27+
- name: Setup Node.js # Set up Node.js environment
28+
uses: actions/[email protected]
29+
30+
- name: Install pnpm package manager # Install pnpm
31+
uses: pnpm/[email protected]
32+
with:
33+
version: ^8
34+
run_install: false
35+
36+
- name: Cleanup # Clean up the repository
37+
run: |
38+
# Declare variables
39+
NAME="$(basename $GITHUB_REPOSITORY)"
40+
VERSION='1.0.0-alpha.0'
41+
42+
# Replace package.json name and version fields
43+
pnpm json -I -f package.json -e "this.name='${NAME}'"
44+
pnpm json -I -f package.json -e "this.version='${VERSION}'"
45+
pnpm install --no-frozen-lockfile # Install dependencies (ignoring lock file)
46+
47+
# Remove unnecessary files
48+
rm -rf \
49+
.github/ISSUE_TEMPLATE \
50+
.github/workflows/template.yml \
51+
.github/dependabot.yml \
52+
.github/FUNDING.yml \
53+
.github/stale.yml \
54+
CHANGELOG.md
55+
README.md
56+
57+
- name: Create Pull Request # Generate a pull request
58+
uses: peter-evans/[email protected]
59+
with:
60+
commit-message: "chore: initial template cleanup" # Commit message

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.0.6] - 2023-07-29
6+
7+
### <!-- 07 -->Continuous Integrations
8+
9+
- Add GitHub Actions workflow for initial template cleanup
10+
11+
### <!-- 08 -->Miscellaneous Tasks
12+
13+
- Bump eslint from 8.45.0 to 8.46.0
14+
- Bump @lingui/detect-locale from 4.2.1 to 4.3.0
15+
516
## [1.0.5] - 2023-07-28
617

718
### <!-- 02 -->Bug Fixes

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-lingui-template",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
@@ -17,7 +17,7 @@
1717
"@headlessui/react": "1.7.16",
1818
"@heroicons/react": "2.0.18",
1919
"@lingui/core": "4.3.0",
20-
"@lingui/detect-locale": "4.2.1",
20+
"@lingui/detect-locale": "4.3.0",
2121
"@lingui/react": "4.3.0",
2222
"clsx": "2.0.0",
2323
"langs": "2.0.0",
@@ -36,7 +36,7 @@
3636
"@types/react": "18.2.17",
3737
"@types/react-dom": "18.2.7",
3838
"autoprefixer": "10.4.14",
39-
"eslint": "8.45.0",
39+
"eslint": "8.46.0",
4040
"eslint-config-next": "13.4.12",
4141
"eslint-config-prettier": "8.9.0",
4242
"postcss": "8.4.27",

0 commit comments

Comments
 (0)