Skip to content
Merged
Show file tree
Hide file tree
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
29 changes: 14 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@ on:
branches:
- release

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
build:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# The branch, tag or SHA to checkout. When checking out the repository that
# triggered a workflow, this defaults to the reference or SHA for that event.
# Otherwise, defaults to `master`.
ref: "dev"
- name: npm install
run: |
cd $GITHUB_WORKSPACE
npm i
- name: build package
run: |
cd $GITHUB_WORKSPACE
npm run build:prod
- name: publish to npm
uses: JS-DevTools/npm-publish@v1
- uses: actions/setup-node@v4
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./dist/ngx-material-entity/package.json
node-version: '20'
registry-url: 'https://registry.npmjs.org'
# Ensure npm 11.5.1 or later is installed
- run: npm install -g npm@latest
- run: npm i
- run: npm run build:prod
- run: |
cd dist/ngx-material-entity
npm publish
Loading
Loading