Skip to content

Commit

Permalink
chore: create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Blendfoul committed Sep 3, 2023
1 parent f38ac30 commit 561eb40
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 42 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: release

on:
- workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Setup Git
run: |
git config user.name "GitHub Bot"
git config user.email "gituser@example.com"
- run: pnpm install
- name: Version
shell: bash
run: pnpm nx version react-native-windows
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

40 changes: 0 additions & 40 deletions libs/react-native-windows/CHANGELOG.md

This file was deleted.

7 changes: 5 additions & 2 deletions libs/react-native-windows/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
"executor": "@jscutlery/semver:version",
"options": {
"preset": "conventional",
"postTargets": ["react-native-windows:npm", "react-native-windows:github"]
"postTargets": ["react-native-windows:github", "react-native-windows:npm"],
"push": true,
"baseBranch": "master"
}
},
"github": {
Expand All @@ -83,7 +85,8 @@
"npm": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com"
}
}
},
Expand Down

0 comments on commit 561eb40

Please sign in to comment.