Skip to content

Commit 7bae479

Browse files
Switch to GitHub Releases (#32)
* chore: switch to github releases * chore: make GmbH to AG * chore: audit fix * refactor: formatting * refactor: formatting * chore: add newline --------- Co-authored-by: Julian König <[email protected]>
1 parent e25c310 commit 7bae479

File tree

9 files changed

+122
-20
lines changed

9 files changed

+122
-20
lines changed

.ci/publish.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
set -e
2+
set -x
3+
4+
if [ -z "$VERSION" ]; then
5+
echo "The environment variable 'VERSION' must be set."
6+
exit 1
7+
fi
8+
9+
if printf -- "$VERSION" | grep -q " "; then
10+
echo '$VERSION must not contain whitespaces'
11+
exit 1
12+
fi
13+
14+
npm version $VERSION --no-git-tag-version
15+
16+
npx enhanced-publish --if-possible --use-preid-as-tag

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Readiness checklist
2+
3+
- [ ] I ensured that the PR title is good enough for the changelog.
4+
- [ ] I labeled the PR.
5+
- [ ] I self-reviewed the PR.
6+
7+
<!-- # Description -->

.github/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ci
5+
- chore
6+
- dependencies
7+
- refactoring
8+
- test
9+
categories:
10+
- title: Breaking Changes
11+
labels:
12+
- breaking-change
13+
- title: New Features
14+
labels:
15+
- enhancement
16+
- title: Bug Fixes
17+
labels:
18+
- bug
19+
- title: Other Changes
20+
labels:
21+
- "*"

.github/settings.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
# https://github.com/repository-settings/app
3+
4+
repository:
5+
allow_squash_merge: true
6+
allow_merge_commit: false
7+
allow_rebase_merge: false
8+
allow_auto_merge: true
9+
allow_update_branch: true
10+
delete_branch_on_merge: true
11+
12+
labels:
13+
- name: breaking-change
14+
color: "#16060F"
15+
description: A breaking change
16+
- name: bug
17+
color: "#d73a4a"
18+
description: Something isn't working
19+
- name: chore
20+
color: "#c2e0c6"
21+
description: Some routine work like updating dependencies
22+
- name: ci
23+
color: "#DFB5FD"
24+
description: Continuous Integration related stuff
25+
- name: dependencies
26+
color: "#0366d6"
27+
description: Pull requests that update dependencies
28+
- name: documentation
29+
color: "#0075ca"
30+
description: Improvements or additions to documentation
31+
- name: enhancement
32+
color: "#a2eeef"
33+
description: New feature or request
34+
- name: refactoring
35+
color: "#880361"
36+
description: Refactoring of code
37+
- name: test
38+
color: "#20D89D"
39+
description: This pull request contains only new or changed tests
40+
- name: wip
41+
color: "#32BF4C"
42+
description: Work in Progress (blocks mergify from auto update the branch)

.github/workflows/check-pr.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Check Pull Request
2+
3+
on:
4+
pull_request:
5+
types: [opened, labeled, unlabeled, synchronize]
6+
7+
jobs:
8+
validate-pr-label:
9+
name: Validate the Pull Request's labels
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: PR must be labeled
13+
uses: jesusvasquez333/[email protected]
14+
with:
15+
disable-reviews: true
16+
github-token: "${{ secrets.GITHUB_TOKEN }}"
17+
valid-labels: "breaking-change, bug, chore, ci, dependencies, documentation, enhancement, refactoring, test"

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Pubilsh Node.js Package
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- "*"
77

88
jobs:
99
publish-npm:
@@ -18,6 +18,7 @@ jobs:
1818
node-version: current
1919
registry-url: https://registry.npmjs.org/
2020
- run: npm ci
21-
- run: npx enhanced-publish --if-possible --use-preid-as-tag
21+
- run: bash .ci/publish.sh
2222
env:
2323
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
VERSION: ${{ github.ref_name }}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2021 j&s-soft GmbH
1+
Copyright 2021 j&s-soft AG
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

package-lock.json

Lines changed: 13 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"name": "@js-soft/eslint-config-ts",
3-
"version": "1.6.14",
43
"description": "j&s-soft typescript linting rules",
54
"repository": "github:js-soft/ts-linting",
65
"license": "MIT",
7-
"author": "js-soft GmbH",
6+
"author": "j&s-soft AG",
87
"main": "index.js",
98
"files": [
109
"index.js",

0 commit comments

Comments
 (0)