-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1.36 KB
/
check-can-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Check package can be published
on:
pull_request:
branches:
- master
env:
# Check available versions below
# https://github.com/actions/node-versions/blob/main/versions-manifest.json
node-version: "20.x"
jobs:
check-can-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
cache: "npm"
node-version: ${{ env.node-version }}
registry-url: "https://registry.npmjs.org"
always-auth: true
- name: Check if vwbl-core package version can be published
uses: technote-space/package-version-check-action@v1
with:
PACKAGE_DIR: 'packages/core/'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_MANAGER: npm
- name: Check if vwbl-sdk(evm chain) package version can be published
uses: technote-space/package-version-check-action@v1
with:
PACKAGE_DIR: 'packages/evm/'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_MANAGER: npm
- name: Check if vwbl-sdk-xrpl package version can be published
uses: technote-space/package-version-check-action@v1
with:
PACKAGE_DIR: 'packages/xrpl/'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_MANAGER: npm