Skip to content

Commit a92fe32

Browse files
committed
Bumped dependencies (#58)
1 parent dafe635 commit a92fe32

5 files changed

Lines changed: 22 additions & 7233 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,14 @@ on:
55
release:
66
types: [ published ]
77

8-
permissions:
9-
contents: read
10-
id-token: write
118
jobs:
12-
publish-snapshots:
13-
environment:
14-
name: NPMJS
15-
url: ${{ steps.publish.outputs.url }}
16-
name: Publish snapshot packages
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-node@v6
21-
with:
22-
registry-url: 'https://registry.npmjs.org'
23-
node-version: '>=24.7.0' # Trusted publishing requires npm CLI version 11.5.1 or later.
24-
- run: npm i
25-
- if: ${{ github.event_name == 'push' }}
26-
run: |
27-
PACKAGE_NAME=$(jq --raw-output .name package.json)
28-
PREFIX=$(jq --raw-output .version package.json)-snapshot
29-
NEXT=$(npm view $PACKAGE_NAME versions --json \
30-
| jq --raw-output --arg prefix $PREFIX '[.[] | select(startswith($prefix))|capture("snapshot\\.(?<n>[0-9]+)").n|tonumber]|max + 1 // 0')
31-
npm version $PREFIX.$NEXT --no-git-tag-version
32-
echo "TAG=snapshot" >> $GITHUB_ENV
33-
- if: ${{ github.event_name == 'release' }}
34-
run: |
35-
npm version $(echo ${{ github.release.tag_name }} | sed 's/^v//') --no-git-tag-version
36-
echo "TAG=latest" >> $GITHUB_ENV
37-
- run: npm test
38-
- id: publish
39-
run: |
40-
npm run build
41-
cd dist
42-
npm publish --provenance --access public --tag $TAG
43-
echo "url=https://www.npmjs.com/package/@waves/ts-lib-crypto/v/$(jq --raw-output .version package.json)" >> "$GITHUB_OUTPUT"
9+
publish:
10+
uses: wavesplatform/publish-to-npm/.github/workflows/publish.yml@7d9462af686d83552d72097bf47a892e43d11f6e
11+
with:
12+
environment: NPMJS
13+
event_name: ${{ github.event_name }}
14+
test: true
15+
version: ${{ github.event.release.tag_name }}
16+
permissions:
17+
id-token: write
18+
contents: read

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,6 @@ $RECYCLE.BIN/
147147
# Project
148148
dist/
149149
.idea
150-
.run
150+
.run
151+
152+
package-lock.json

0 commit comments

Comments
 (0)