Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto publish #8

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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