Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README_JS: fix action examples #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README_JS.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ jobs:

### Version increase

Create new version
Create new version. `NPM_AUTH_TOKEN` is actually a GH token with write access to the repository.

```yaml
jobs:
version:
name: Create new version
uses: BrandEmbassy/github-actions/.github/workflows/js-version.yml@master
sectets:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
secrets:
NPM_AUTH_TOKEN: ${{ secrets.COMPOSER_TOKEN }}
```
with version type (default: minor)

Expand All @@ -93,8 +93,8 @@ jobs:
uses: BrandEmbassy/github-actions/.github/workflows/js-version.yml@master
with:
VERSION_TYPE: patch
sectets:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
secrets:
NPM_AUTH_TOKEN: ${{ secrets.COMPOSER_TOKEN }}
```

### Build project
Expand All @@ -104,8 +104,8 @@ jobs:
version:
name: Build application
uses: BrandEmbassy/github-actions/.github/workflows/js-build.yml@master
secrets:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
secrets:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
```
optionally you can set register url for @brandembassy scoped packages and node version

Expand All @@ -114,9 +114,9 @@ jobs:
version:
name: Build application
uses: BrandEmbassy/github-actions/.github/workflows/js-build.yml@master
with:
BRANDEMBASSY_SCOPE_REGISTRY_URL: https://npm.pkg.github.com/
NODE_VERSION: 'lts/*'
secrets:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
with:
BRANDEMBASSY_SCOPE_REGISTRY_URL: https://npm.pkg.github.com/
NODE_VERSION: 'lts/*'
secrets:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
```