Skip to content

Commit

Permalink
docs: update instructions for php and js
Browse files Browse the repository at this point in the history
  • Loading branch information
prokopsimek committed Nov 15, 2023
1 parent f0aa1b7 commit 59b3b54
Showing 1 changed file with 3 additions and 40 deletions.
43 changes: 3 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Add these secret to your repository:
Create a new file in your repository `.github/workflows/release.yml` with the following content that fits your package type.

### For Node.js package
#### JavaScript

<!-- {x-release-please-start-major} -->
```yaml
name: Release
Expand Down Expand Up @@ -110,43 +110,6 @@ jobs:
```
<!-- {x-release-please-end} -->
#### TypeScript
```yaml
name: Release
on:
push:
branches:
- main # set your default branch

permissions:
contents: write
pull-requests: write

jobs:
build:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
release:
name: Release by DX Heroes
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dxheroes/gh-action-auto-release@v1
with:
release-type: node
package-name: prs-test-js-lib
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
```
### For PHP package
<!-- {x-release-please-start-major} -->
```yaml
Expand All @@ -171,8 +134,8 @@ jobs:
release-type: php
package-name: prs-test-php-lib
env:
PACKAGIST_USERNAME: ${{ env.PACKAGIST_USERNAME }}
PACKAGIST_TOKEN: ${{ env.PACKAGIST_TOKEN }}
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
```
<!-- {x-release-please-end} -->
Expand Down

0 comments on commit 59b3b54

Please sign in to comment.