Skip to content

Commit

Permalink
Publish Pipeline force
Browse files Browse the repository at this point in the history
  • Loading branch information
ggallotti committed Jul 5, 2024
1 parent 5ee6dcf commit f273888
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish Package To NPM
on:
push:
branches:
- main
create:
tags:
- v*

jobs:
release-please:
Expand All @@ -17,19 +17,18 @@ jobs:
- uses: actions/checkout@v2
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}

- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}

- run: npm ci
if: ${{ steps.release.outputs.release_created }}

- run: npx nx affected -t build
if: ${{ steps.release.outputs.release_created }}

- run: cd dist/libs/ngx-aws-deploy
if: ${{ steps.release.outputs.release_created }}

- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# NGX-AWS-DEPLOY

### How to Publish new package version to npm?

Run:
```
npm version patch
git push --follow-tags
```


☁️🚀 Deploy your Angular app to Amazon S3 directly from the Angular CLI 🚀☁️

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
Expand Down

0 comments on commit f273888

Please sign in to comment.