-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
377d7c3
commit 87a7deb
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Release permit Node SDK | ||
|
||
on: push | ||
# push: | ||
# tags: | ||
# - 'v*' | ||
|
||
jobs: | ||
publish_node_sdk: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Verify ~/.npmrc exists | ||
run: cat ~/.npmrc | ||
|
||
- name: Install dependencies | ||
run: | | ||
yarn run build | ||
yarn docs ; git add docs/ ; git commit -m "update tsdoc" | ||
- name: Update package.json with new version | ||
run: | | ||
#sed -i "s/\"version\": \".*\"/\"version\": \"${{ github.event.release.tag_name }}\"/" package.json | ||
sed -i "s/\"version\": \".*\"/\"version\": \"1.1.121212\"/" package.json | ||
echo package.json | ||
# - name: Publish package to NPM | ||
# run: yarn publish --access public | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# - name: Commit package.json changes | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "elimoshkovich" | ||
# git add package.json | ||
# git commit -m "update package.json version to ${{ github.event.release.tag_name }}" | ||
|
||
# - name: Push changes to GitHub | ||
# uses: ad-m/github-push-action@master | ||
# with: | ||
# github_token: ${{ secrets.TOKEN_GITHUB }} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|