Skip to content

Merge pull request #2 from AlejandroRM-DEV/all-contributors/add-Aleja… #7

Merge pull request #2 from AlejandroRM-DEV/all-contributors/add-Aleja…

Merge pull request #2 from AlejandroRM-DEV/all-contributors/add-Aleja… #7

Workflow file for this run

name: Release mx-hooks
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Configure Git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Authenticate with npm registry
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Run release-it
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release -- --ci