Skip to content

feat: cleanup and update #2

feat: cleanup and update

feat: cleanup and update #2

Workflow file for this run

name: Generate Tags
on:
push:
branches:
- master
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Configure CI Git User
run: |
git config --global user.name '@cirocfc'
git config --global user.email 'ciro.cfc@gmail.com'
git remote set-url origin https://$GITHUB_ACTOR:$GH_TOKEN@github.com/cirocfc/yet-another
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Install Packages
run: yarn install
- name: Authenticate with Registry
run: |
echo "@cirocfc:registry=https://registry.npmjs.org/" > .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish package
run: yarn release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}