66.0.2 #145
Workflow file for this run
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: Publish Design System to npm | |
on: | |
release: | |
types: [published] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Read .nvmrc file | |
id: read-nvmrc-file | |
run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
- name: Use Node.js | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.release.target_commitish }} | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.read-nvmrc-file.outputs.nvmrc }}" | |
registry-url: https://registry.npmjs.org/ | |
- run: yarn install | |
- run: git config --global user.name "${{ github.actor }}" | |
- run: git config --global user.email "github-action-${{ github.actor }}@users.noreply.github.com" | |
- run: npm version ${{ github.event.release.tag_name }} | |
- run: yarn npm-bundle | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |