@mtth/prettier-typescript 0.1.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2021, Matthieu Monsch.
1
+ Copyright (c) 2025, Matthieu Monsch.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
  this software and associated documentation files (the "Software"), to deal in
package/README.md CHANGED
@@ -18,8 +18,3 @@ Then, inside `package.json`:
18
18
 
19
19
  More information:
20
20
  https://prettier.io/docs/en/configuration.html#sharing-configurations
21
-
22
- ## Next steps
23
-
24
- We recommend using `prettier` in combination with ESLint, for example
25
- with [this plugin](https://github.com/mtth/eslint-plugin).
package/package.json CHANGED
@@ -1,19 +1,12 @@
1
1
  {
2
2
  "name": "@mtth/prettier-typescript",
3
- "version": "0.1.2",
3
+ "version": "0.3.0",
4
+ "repository": "github:mtth/sdk.ts",
4
5
  "description": "Shared prettier config for TypeScript",
5
- "homepage": "https://github.com/mtth/prettier-typescript",
6
6
  "keywords": [
7
7
  "prettier"
8
8
  ],
9
- "main": "index.json",
10
- "author": {
11
- "name": "Matthieu Monsch",
12
- "email": "mtth@apache.org"
13
- },
9
+ "author": "Matthieu Monsch <mtth@apache.org>",
14
10
  "license": "MIT",
15
- "repository": {
16
- "type": "git",
17
- "url": "git://github.com/mtth/prettier-typescript.git"
18
- }
19
- }
11
+ "main": "index.json"
12
+ }
@@ -1,79 +0,0 @@
1
- name: CI
2
- on:
3
- push:
4
- branches:
5
- - main
6
- jobs:
7
- tag:
8
- name: Tag commit
9
- runs-on: ubuntu-latest
10
- timeout-minutes: 1
11
- outputs:
12
- tagged: ${{ format(steps.check-tag.outputs.exists == 'false') }}
13
- steps:
14
- - name: Check out
15
- uses: actions/checkout@v2
16
- with:
17
- fetch-depth: 0
18
- - name: Setup Node
19
- uses: actions/setup-node@v2
20
- - name: Extract version
21
- run: |
22
- PACKAGE_VERSION="$(node -p 'require("./package.json").version')"
23
- echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
24
- - name: Check tag exists
25
- uses: mukunku/tag-exists-action@v1.0.0
26
- id: check-tag
27
- with:
28
- tag: v${{ env.PACKAGE_VERSION }}
29
- env:
30
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31
- - name: Create tag
32
- if: steps.check-tag.outputs.exists == 'false'
33
- uses: pkgdeps/git-tag-action@v2
34
- with:
35
- git_commit_sha: ${{ github.sha }}
36
- git_tag_prefix: v
37
- github_repo: ${{ github.repository }}
38
- github_token: ${{ secrets.GITHUB_TOKEN }}
39
- version: ${{ env.PACKAGE_VERSION }}
40
- publish-gh:
41
- name: Publish package to GitHub
42
- runs-on: ubuntu-latest
43
- timeout-minutes: 2
44
- needs: tag
45
- if: needs.tag.outputs.tagged == 'true'
46
- steps:
47
- - name: Check out
48
- uses: actions/checkout@v2
49
- - name: Setup Node
50
- uses: actions/setup-node@v2
51
- with:
52
- node-version: 15.x
53
- registry-url: https://npm.pkg.github.com
54
- - name: Install
55
- run: npm i
56
- - name: Publish to GitHub
57
- run: npm publish
58
- env:
59
- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
- publish-npm:
61
- name: Publish package to NPM
62
- runs-on: ubuntu-latest
63
- timeout-minutes: 2
64
- needs: tag
65
- if: needs.tag.outputs.tagged == 'true'
66
- steps:
67
- - name: Check out
68
- uses: actions/checkout@v2
69
- - name: Setup Node
70
- uses: actions/setup-node@v2
71
- with:
72
- node-version: 15.x
73
- registry-url: https://registry.npmjs.org
74
- - name: Install
75
- run: npm i
76
- - name: Publish to NPM
77
- run: npm publish --access=public
78
- env:
79
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}