feat: cleanup and update #47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CD | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - 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_TK }} | |
| - name: Install Packages | |
| run: yarn install | |
| - name: Authenticate with Registry | |
| run: | | |
| echo "@cirocfc:registry=http://registry.npmjs.org/" > .npmrc | |
| echo "registry=http://registry.npmjs.org/" >> .npmrc | |
| echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc | |
| npm whoami | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| run: yarn release | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |