-
Notifications
You must be signed in to change notification settings - Fork 2
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
a04fda4
commit 656be8a
Showing
1 changed file
with
25 additions
and
22 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: Release permit Node SDK | ||
|
||
on: | ||
release: | ||
types: [published] | ||
on: push | ||
# release: | ||
# types: [published] | ||
|
||
jobs: | ||
publish_node_sdk: | ||
|
@@ -30,25 +30,28 @@ jobs: | |
yarn run build | ||
yarn docs ; git add docs/ ; git commit -m "update tsdoc" | ||
- name: Bump version at package.json | ||
run: | | ||
sed -i "s/\"version\": \".*\"/\"version\": \"${{ github.event.release.tag_name }}\"/" package.json | ||
cat package.json | ||
- name: Run tests | ||
run: yarn test | ||
|
||
# - name: Bump version at package.json | ||
# run: | | ||
# sed -i "s/\"version\": \".*\"/\"version\": \"${{ github.event.release.tag_name }}\"/" package.json | ||
# cat package.json | ||
|
||
- name: Publish package to NPM | ||
run: yarn publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# - 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 "bump package.json version to ${{ github.event.release.tag_name }}" | ||
# - 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 "bump 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 }} | ||
branch: main | ||
# - name: Push changes to GitHub | ||
# uses: ad-m/github-push-action@master | ||
# with: | ||
# github_token: ${{ secrets.TOKEN_GITHUB }} | ||
# branch: main |