@todesktop/shared 7.184.0 → 7.184.1

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.
@@ -1,16 +1,30 @@
1
1
  on:
2
2
  push:
3
3
  branches:
4
- - main
4
+ - td-1948-release-todesktop-shared-types-when
5
5
 
6
6
  jobs:
7
7
  release:
8
8
  name: Release types
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: actions/checkout@v2
12
- - name: Use Node.js ${{ matrix.node-version }}
13
- uses: mikeal/merge-release@v4.0.7
14
- env:
15
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16
- NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-node@v3
13
+ - run: npm ci
14
+
15
+ - name: Bump version
16
+ run: |
17
+ current_ver="$(node -p -e "require('./package.json').version")"
18
+ npm_ver="$(npm view @todesktop/shared version)"
19
+ latest_ver="$(npx semver "${current_ver}" ${npm_ver} | tail -n 1)"
20
+
21
+ if [ "${current_ver}" != "${latest_ver}" ]; then
22
+ npm version "${latest_ver}" --no-git-tag-version -f
23
+ fi
24
+
25
+ npm version --no-git-tag-version patch
26
+
27
+ - name: Publish
28
+ run: |
29
+ npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_AUTH_TOKEN }}"
30
+ npm publish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.184.0",
3
+ "version": "7.184.1",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",