Skip to content

Commit

Permalink
Merge pull request #8 from selsa-inube/cm/ids1530/add-auto-publish
Browse files Browse the repository at this point in the history
Add auto publish
  • Loading branch information
cmarin001 committed Apr 4, 2024
2 parents efe5c61 + e254112 commit 27a0bd8
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 16,284 deletions.
16 changes: 16 additions & 0 deletions .autorc.json
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"
}
45 changes: 45 additions & 0 deletions .github/workflows/auto-release.yml
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 }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ node_modules
dist
dist-ssr
*.local
.npmrc

# Ignore package-lock.json
package-lock.json

# Editor directories and files
.vscode/*
Expand Down
Loading

0 comments on commit 27a0bd8

Please sign in to comment.