chore: release 8.1.1 #77
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: | |
github.actor != 'carbon-bot' | |
&& !contains(github.event.head_commit.message, 'ci-skip') | |
name: Create release - Node.js v18.16.1 | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 18.16.1 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.16.1' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: | | |
yarn install --cwd example --frozen-lockfile | |
yarn install --frozen-lockfile | |
- name: Configure git | |
uses: oleksiyrudenko/[email protected] | |
with: | |
global: true | |
name: 'David Bradshaw' | |
email: '[email protected]' | |
actor: '[email protected]' | |
token: '${{ secrets.DCO_PERSONAL_ACCESS_TOKEN }}' | |
- name: Change git remote to use SSH | |
run: | | |
git remote set-url origin [email protected]:carbon-design-system/carbon-react-native.git | |
- name: Attach SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Deploy to Github & NPM 🚀 | |
run: | | |
npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }} | |
yarn release --ci | |
env: | |
GITHUB_TOKEN: ${{ secrets.DCO_PERSONAL_ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |