Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
BalliAsghar committed Jul 11, 2023
1 parent aa4828c commit be1899d
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,41 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
Release-Github:
needs: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::$(node -p "require('./package.json').version")
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.get_version.outputs.VERSION }}
generate_release_notes: true
# Release-Github:
# needs: Testing
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 18
# - name: Get version
# id: get_version
# run: echo ::set-output name=VERSION::$(node -p "require('./package.json').version")
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# draft: false
# prerelease: false
# token: ${{ secrets.GITHUB_TOKEN }}
# tag_name: ${{ steps.get_version.outputs.VERSION }}
# generate_release_notes: true
Release-Npm:
needs: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: mikeal/merge-release@master
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Bump-Brew:
needs: Release-Npm
runs-on: ubuntu-latest
Expand Down

0 comments on commit be1899d

Please sign in to comment.