Merge pull request #1826 from CondeNast/utf8-encoding #325
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 | |
concurrency: release | |
on: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
environment: npm | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-node@v3 | |
with: | |
always-auth: true | |
node-version: "20.11.1" | |
registry-url: https://registry.npmjs.org | |
- name: Install Dependencies | |
run: npm ci --no-optional | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- name: Configure git | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY | |
env: | |
GITHUB_TOKEN: ${{secrets.ROBOT_GITHUB_TOKEN}} | |
- name: Fetch tags | |
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
env: | |
GITHUB_TOKEN: ${{secrets.ROBOT_GITHUB_TOKEN}} | |
- name: Lerna publish | |
run: | | |
npx lerna publish\ | |
-m "chore(release): publish [skip ci]"\ | |
--conventional-graduate\ | |
--conventional-commits\ | |
--yes | |
env: | |
GITHUB_TOKEN: ${{secrets.ROBOT_GITHUB_TOKEN}} | |
NODE_AUTH_TOKEN: ${{secrets.ROBOT_NPM_TOKEN}} |