Skip to content

Commit b991c80

Browse files
authored
Merge pull request #17 from Luos-io/dev
Dev
2 parents de1c090 + 402e1d9 commit b991c80

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,45 @@ on:
66
- main
77

88
jobs:
9-
build:
10-
name: Build
11-
uses: luos-io/sdk-web/.github/workflows/build.yml@main
129
publish:
1310
name: Publish
1411
runs-on: ubuntu-latest
15-
needs: build
1612
steps:
1713
- name: Checkout
1814
uses: actions/checkout@v2
1915

2016
- name: Setup NodeJS
2117
uses: actions/setup-node@v2
2218
with:
23-
node-version: '14.x'
19+
node-version: '16.x'
2420
registry-url: 'https://npm.pkg.github.com'
2521
scope: '@luos-io'
2622

23+
- name: Install dependencies
24+
run: yarn
25+
26+
- name: Build package
27+
run: yarn build
28+
2729
- name: Publish GitHub Packages
2830
run: yarn publish --access public
2931
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3133

3234
- name: Setup NodeJS
3335
uses: actions/setup-node@v2
3436
with:
35-
node-version: '14.x'
37+
node-version: '16.x'
3638
registry-url: 'https://registry.npmjs.org'
3739
scope: '@luos-io'
3840

41+
- name: Install dependencies
42+
run: yarn
43+
44+
- name: Build package
45+
run: yarn build
46+
3947
- name: Publish NPM
4048
run: yarn publish --access public
4149
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@
44

55
### Workflow
66

7-
You can use [ACT](https://github.com/nektos/act#installation-through-package-managers) to validate the workflows locally :
7+
You can use [ACT](https://github.com/nektos/act#installation-through-package-managers) to validate the workflows locally:
88

99
1. Install ACT (See link for other systems):
1010

1111
```sh
1212
brew install act
1313
```
1414

15-
2. Setup secrets variables in the `.act/.secrets` file :
15+
2. Setup secrets variables in the `.act/.secrets` file:
1616

1717
```yml
1818
NPM_TOKEN=
1919
GITHUB_TOKEN=
2020
```
21+
22+
3. Run the workflow locally:
23+
24+
```sh
25+
act --container-architecture=linux/amd64 --secret-file ./.act/.secrets -P ubuntu-latest=node:16 push -v
26+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@luos-io/sdk-web",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"author": "Luos",
55
"description": "",
66
"license": "MIT",

0 commit comments

Comments
 (0)