Skip to content

Merge pull request #13 from selsa-inube/cmarin/ids1649/adjustment-to-… #12

Merge pull request #13 from selsa-inube/cmarin/ids1649/adjustment-to-…

Merge pull request #13 from selsa-inube/cmarin/ids1649/adjustment-to-… #12

Workflow file for this run

name: Auto Release
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
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: Install Dependencies
run: npm install
- name: Build Project
run: npm run build
autorelease:
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'push' && !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 }}