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 ef8e1fe
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on:
- workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
- 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 affected --target=version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag last-release
shell: bash
run: |
git tag -f last-release
git push origin last-release --force
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 ef8e1fe

Please sign in to comment.