Skip to content

Commit c0e0926

Browse files
authored
Fic CD (#6)
1 parent e072311 commit c0e0926

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/smart-contracts-cd-dev.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ jobs:
2121

2222
- uses: actions/setup-node@v3
2323
with:
24-
node-version: '18'
24+
node-version: 18
25+
registry-url: https://registry.npmjs.org
2526

2627
- name: publish
2728
run: ./scripts/publish-dev.sh
2829
env:
29-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
30+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

.github/workflows/smart-contracts-cd.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020

2121
- uses: actions/setup-node@v3
2222
with:
23-
node-version: '18'
23+
node-version: 18
24+
registry-url: https://registry.npmjs.org
2425

2526
- name: publish
2627
run: |
2728
npm ci
2829
npm run build
2930
npm publish --access public
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
3033

3134
deploy-typedoc:
3235
needs: test

smart-contracts/scripts/publish-dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ npm version --preid dev --no-git-tag-version --no-commit-hooks prepatch
66
TIME=$(date -u +%Y%m%d%H%M%S)
77
sed -i "/version/s/dev.0/dev.$TIME/g" package.json
88
PUBLISH_VERSION=$(cat package.json | jq -r '.version')
9-
echo publishing @massalabs/massa-as-sdk@$PUBLISH_VERSION
9+
echo publishing @massalabs/sc-standards@$PUBLISH_VERSION
1010

1111
# disable husky
1212
npm pkg delete scripts.prepare

0 commit comments

Comments
 (0)