-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(embed): create the github action to publish on npm
build(embed): create the github action to publish on npm build(embed): create the github action to publish on npm
- Loading branch information
1 parent
090be5e
commit 235bc37
Showing
3 changed files
with
37 additions
and
2 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,35 @@ | ||
name: Publish Sharingan embed assets to npmjs | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- 'packages/embed/src/scripts/**' | ||
- 'packages/embed/src/styles/**' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'packages/embed/src/scripts/**' | ||
- 'packages/embed/src/styles/**' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Setup .npmrc file to publish to npm | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install projects dependencies | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Publish to NPM | ||
run: | | ||
yarn build | ||
cp package.publish.json build/package.json | ||
cd build | ||
yarn publish | ||
working-directory: packages/embed | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,6 +1,6 @@ | ||
{ | ||
"name": "sharingan-embed", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": "https://github.com/tericcabrel/sharingan.git", | ||
"author": "Eric Cabrel TIOGO <[email protected]>", | ||
"license": "MIT" | ||
|
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