Skip to content

Commit

Permalink
add release configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pornkilla committed Sep 30, 2024
1 parent 505e122 commit e36bc0a
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: yarn
Expand All @@ -40,3 +40,21 @@ jobs:
jq ".version = $(jq .version ./dist/ng-select/package.json)" \
./dist/ng-option-highlight/package.json > "$TEMPFILE"
mv "$TEMPFILE" ./dist/ng-option-highlight/package.json
- name: Set up npm registry
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: publish @ng-select/ng-option-highlight
run: yarn publish ./dist/ng-option-highlight
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: build demo
run: yarn run build:demo

- name: Deploy demo 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
branch: gh-pages
folder: dist/demo

0 comments on commit e36bc0a

Please sign in to comment.