Skip to content

Commit 8d856d3

Browse files
committed
Bumps node modules
1 parent f051424 commit 8d856d3

8 files changed

Lines changed: 7092 additions & 101 deletions

File tree

.github/workflows/release.yml

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,20 @@ jobs:
3131
with:
3232
node-version: 'lts/*'
3333
registry-url: 'https://registry.npmjs.org'
34-
scope : 'appstore-connect-jwt-generator-cli'
34+
scope : 'aappstore-connect-jwt-generator-cli'
3535
package-manager-cache: false
3636

3737
- name: Can Publish
3838
run : npx can-npm-publish --verbose
39+
working-directory: package
40+
41+
- name: Get package info
42+
id: package
43+
run: |
44+
VERSION=$(jq -r '.version' package.json)
45+
PACKAGE_NAME=$(jq -r '.name' package.json)
46+
echo "version=$VERSION" >> $GITHUB_OUTPUT
47+
echo "name=$PACKAGE_NAME" >> $GITHUB_OUTPUT
3948
4049
- name: Install latest npm
4150
run: |
@@ -52,6 +61,63 @@ jobs:
5261
5362
- name: Build
5463
run : pnpm build
64+
working-directory: package
5565

5666
- name: Publish
5767
run : pnpm -r publish --no-git-checks --access public --provenance
68+
working-directory: package
69+
70+
- name: Create GitHub Release with tag
71+
id: create-release
72+
run: |
73+
RELEASE_URL=$(gh release create "v$VERSION" \
74+
--title "v$VERSION" \
75+
--target "$SHA" \
76+
--notes "$PR_BODY")
77+
echo "url=$RELEASE_URL" >> $GITHUB_OUTPUT
78+
env:
79+
GH_TOKEN: ${{ github.token }}
80+
VERSION: ${{ steps.package.outputs.version }}
81+
SHA: ${{ github.sha }}
82+
PR_BODY: ${{ github.event.pull_request.body }}
83+
84+
- name: Comment on PR - Success
85+
if: |
86+
always() &&
87+
github.event_name == 'pull_request' &&
88+
success()
89+
run: |
90+
gh pr comment "$PR_NUMBER" \
91+
--body "✅ **Release v$VERSION completed successfully!**
92+
93+
- 📦 npm package: https://www.npmjs.com/package/$PACKAGE_NAME/v/$VERSION
94+
- 🏷️ GitHub Release: $RELEASE_URL
95+
- 🔗 Workflow run: $SERVER_URL/$REPOSITORY/actions/runs/$RUN_ID"
96+
env:
97+
GH_TOKEN: ${{ github.token }}
98+
PR_NUMBER: ${{ github.event.pull_request.number }}
99+
VERSION: ${{ steps.package.outputs.version }}
100+
PACKAGE_NAME: ${{ steps.package.outputs.name }}
101+
RELEASE_URL: ${{ steps.create-release.outputs.url }}
102+
SERVER_URL: ${{ github.server_url }}
103+
REPOSITORY: ${{ github.repository }}
104+
RUN_ID: ${{ github.run_id }}
105+
106+
- name: Comment on PR - Failure
107+
if: |
108+
always() &&
109+
github.event_name == 'pull_request' &&
110+
failure()
111+
run: |
112+
gh pr comment "$PR_NUMBER" \
113+
--body "❌ **Release v$VERSION failed**
114+
115+
Please check the workflow logs for details.
116+
🔗 Workflow run: $SERVER_URL/$REPOSITORY/actions/runs/$RUN_ID"
117+
env:
118+
GH_TOKEN: ${{ github.token }}
119+
PR_NUMBER: ${{ github.event.pull_request.number }}
120+
VERSION: ${{ steps.package.outputs.version }}
121+
SERVER_URL: ${{ github.server_url }}
122+
REPOSITORY: ${{ github.repository }}
123+
RUN_ID: ${{ github.run_id }}

eslint.config.js

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

33
import eslint from '@eslint/js';
44
import stylistic from '@stylistic/eslint-plugin';
5-
// eslint-disable-next-line import/no-unresolved
65
import tseslint from 'typescript-eslint';
76
import importPlugin from 'eslint-plugin-import';
87
import pluginPromise from 'eslint-plugin-promise'
@@ -16,9 +15,9 @@ const __dirname = path.dirname(__filename);
1615
const gitignorePath = path.resolve(__dirname, ".gitignore");
1716

1817
export default tseslint.config(
19-
includeIgnoreFile(gitignorePath),
2018
{
2119
ignores: [
20+
...(includeIgnoreFile(gitignorePath).ignores ?? []),
2221
'**/*.d.ts',
2322
'*.js',
2423
'node_modules/**/*',
@@ -30,8 +29,6 @@ export default tseslint.config(
3029
eslint.configs.recommended,
3130
...tseslint.configs.strict,
3231
...tseslint.configs.stylistic,
33-
importPlugin.flatConfigs.recommended,
34-
importPlugin.flatConfigs.typescript,
3532
pluginPromise.configs['flat/recommended'],
3633
{
3734
files: ['src/**/*.ts'],
@@ -40,6 +37,10 @@ export default tseslint.config(
4037
ecmaVersion: 'latest',
4138
sourceType: 'module',
4239
},
40+
extends: [
41+
importPlugin.flatConfigs.recommended,
42+
importPlugin.flatConfigs.typescript,
43+
],
4344
settings: {
4445
'import/resolver': {
4546
typescript: true,
@@ -48,11 +49,10 @@ export default tseslint.config(
4849
},
4950
plugins: {
5051
'@stylistic': stylistic,
51-
'@stylistic/ts': stylistic,
5252
},
5353
rules: {
5454
'@stylistic/semi': ['error', 'always'],
55-
'@stylistic/ts/indent': ['error', 2],
55+
'@stylistic/indent': ['error', 2],
5656
'@stylistic/comma-dangle': ['error', 'always-multiline'],
5757
'@stylistic/arrow-parens': ['error', 'always'],
5858
'@stylistic/quotes': ['error', 'single'],

0 commit comments

Comments
 (0)