Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sajjadmrx committed May 1, 2023
1 parent f929532 commit e70da08
Showing 1 changed file with 38 additions and 12 deletions.
50 changes: 38 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
name: Release
on:
push:
branches: ["develop"]
push:
branches: ["develop"]
jobs:
create_issue:
publish_on_linux:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Create issue using REST API
run: |
curl --request GET \
--url https://api.github.com/user \
--header 'authorization: Bearer ${{ secrets.TOKEN }}' \
--header 'content-type: application/json' \
--fail
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Node v18
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm ci

- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
run: npm run publish
publish_on_win:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Node v18
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm ci

- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
run: npm run publish

0 comments on commit e70da08

Please sign in to comment.