generated from selsa-inube/inubekit-starter
-
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.
Merge pull request #8 from selsa-inube/cm/ids1530/add-auto-publish
Add auto publish
- Loading branch information
Showing
7 changed files
with
84 additions
and
16,284 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,16 @@ | ||
{ | ||
"plugins": [ | ||
"git-tag", | ||
[ | ||
"npm", | ||
{ | ||
"setRcToken": true, | ||
"publishFlags": ["--access", "public"] | ||
} | ||
] | ||
], | ||
"owner": "selsa-inube", | ||
"repo": "inubekit-nav", | ||
"name": "cmarin001", | ||
"email": "cmarin6051@gmail.com" | ||
} |
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,45 @@ | ||
name: Auto Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
autorelease: | ||
runs-on: ubuntu-latest | ||
if: ${{ !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') }} | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
registry-url: "https://registry.npmjs.org/" | ||
scope: "@inubekit" | ||
always-auth: true | ||
|
||
- name: Configure Git | ||
run: | | ||
git config --global user.email cmarin6051@gmail.com | ||
git config --global user.name cmarin001 | ||
- name: Configure npm | ||
run: | | ||
echo "@inubekit:registry=https://registry.npmjs.org/" >> .npmrc | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc | ||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Run auto shipit | ||
run: npx auto shipit | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_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
Oops, something went wrong.