-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.09 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
timeout-minutes: 10
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
args: [--no-frozen-lockfile]
- run: |
git config --global user.email "[email protected]"
git config --global user.name "Ahmed Abdelbaset"
git add .
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: "release: 📦 version packages"
title: "release: 📦 version packages"
publish: npm publish --access public
setupGitUser: false
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}