refactor: prepare migration to forge #11
This file contains 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: release | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- "*" | |
pull_request: | |
branches: [forge-dev] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
registry-url: "https://registry.npmjs.org" | |
- name: Authentication | |
run: | | |
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Install dependencies | |
run: yarn | |
- name: Setup git name and email to github actions user | |
uses: fregante/setup-git-user@v2.0.1 | |
- name: Publish packages | |
run: yarn version:publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# TODO: uncomment | |
# run: yarn version:release | |
# env: | |
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |