@todesktop/shared 7.184.0 → 7.184.2

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