Skip to content

Commit b88e002

Browse files
committed
chore: prepare public release
1 parent 624e540 commit b88e002

32 files changed

+646
-2366
lines changed

.changeset/lucky-flowers-repair.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@sngular/semantic-release-config": major
3+
"@sngular/lint-staged-config": major
4+
"@sngular/commitlint-config": major
5+
"@sngular/prettier-config": major
6+
"@sngular/tsconfig": major
7+
"@sngular/eslint-config": major
8+
---
9+
10+
Public release

.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = { extends: '@os3' };
1+
module.exports = { extends: '@sngular' };

.github/workflows/greetings.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
continue-on-error: true
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
issue-message: 'Thank you for collaborating with the project by giving us feedback!'
14+
pr-message: 'Thank you for collaborating with the project to help us improve! We hope this CLI is useful to you. Cheers!'

.github/workflows/release.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
# Prevents changesets action from creating a PR on forks
13+
if: github.repository == 'sngular/javascript'
14+
name: Release
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
persist-credentials: false
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: 'lts/*'
27+
28+
- name: Install dependencies
29+
run: npm clean-install
30+
31+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
32+
run: npm audit signatures
33+
34+
- name: Create Release Pull Request or Publish to npm
35+
id: changesets
36+
uses: changesets/action@v1
37+
with:
38+
publish: npm run release
39+
commit: "chore: version packages"
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/verify.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Verify changes
2+
3+
on: pull_request
4+
5+
jobs:
6+
verify:
7+
name: Verify changes
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
persist-credentials: false
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 'lts/*'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- name: Install Dependencies
23+
run: npm install --ci
24+
25+
- name: Lint
26+
run: npm run lint:check
27+
28+
- name: Format
29+
run: npm run format:check
30+
31+
- name: Types
32+
run: npm run types:check

.gitlab-ci.yml

-101
This file was deleted.

.npmrc

-1
This file was deleted.

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Javascript quality guidelines
22

3-
In order to enforcing OS3 style guidelines. We created the following packages to help projects implement linters easily.
3+
In order to enforcing SNGULAR style guidelines. We created the following packages to help projects implement linters easily.
44

5-
- [@os3/commitlint-config](./packages/commitlint/README.md)
6-
- [@os3/eslint-config](./packages/eslint/README.md)
7-
- [@os3/lint-staged-config](./packages/lint-staged/README.md)
8-
- [@os3/prettier-config](./packages/prettier/README.md)
9-
- [@os3/semantic-release-config](./packages/semantic-release/README.md)
10-
- [@os3/tsconfig](./packages/tsconfig/README.md)
5+
- [@sngular/commitlint-config](./packages/commitlint/README.md)
6+
- [@sngular/eslint-config](./packages/eslint/README.md)
7+
- [@sngular/lint-staged-config](./packages/lint-staged/README.md)
8+
- [@sngular/prettier-config](./packages/prettier/README.md)
9+
- [@sngular/semantic-release-config](./packages/semantic-release/README.md)
10+
- [@sngular/tsconfig](./packages/tsconfig/README.md)
1111

1212
You can also configure [`.editorconfig`](./.editorconfig) file to ensure your code editor follow the style guide.
1313

14-
Some of the packages (commitlint & lint-staged) are created to work with [husky](https://typicode.github.io/husky/) to make git hook easy. We recomend to follow the [manual installation](https://typicode.github.io/husky/#/?id=manual) and then add the following hooks to your project:
14+
Some of the packages (commitlint & lint-staged) are created to work with [husky](https://typicode.github.io/husky/) to make git hook easy. We recommend to follow the [manual installation](https://typicode.github.io/husky/#/?id=manual) and then add the following hooks to your project:
1515

1616
- Hook for lint commit messages:
1717

commitlint.config.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = { extends: ['@os3'] };
1+
module.exports = { extends: ['@sngular'] };

lint-staged.config.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@os3/lint-staged-config');
1+
module.exports = require('@sngular/lint-staged-config');

0 commit comments

Comments
 (0)