-
Notifications
You must be signed in to change notification settings - Fork 0
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
7d352fc
commit 2c9a333
Showing
8 changed files
with
44 additions
and
316 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,22 +1,27 @@ | ||
name: Release | ||
|
||
name: Build and publish to github packages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
push: | ||
branches: | ||
- prod | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Setup .npmrc file to publish to npm | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm i | ||
- run: npm run build | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.11.0 | ||
registry-url: https://npm.pkg.github.com/ | ||
- name: Configure .npmrc | ||
run: | | ||
echo "@januscaler:registry=https://npm.pkg.github.com/" > .npmrc | ||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PUBLISH_GITHUB_PACKAGES }}" >> .npmrc | ||
- name: Install Dependencies | ||
run: npm i | ||
- name: Build Package | ||
run: npm run build | ||
- name: Publish Package | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_GITHUB_PACKAGES}} |
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 |
---|---|---|
|
@@ -113,3 +113,5 @@ dist | |
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.pnp.* | ||
.npmrc | ||
package-lock.json |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.