Skip to content

release

release #89

Workflow file for this run

name: release
on:
workflow_run:
workflows: ['test']
branches: [main]
types:
- completed
paths:
- 'packages/react-native-autocomplete-input/**'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_branch }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Copy files
run: cp -r {README.md,LICENSE} packages/react-native-autocomplete-input/.
- name: Release
run: cd packages/react-native-autocomplete-input && npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}