-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
reason: | ||
description: Why was the workflow triggered manually? | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
|
||
jobs: | ||
publish-to-github: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js and install NPM dependencies | ||
uses: ./.github/actions/install-npm-deps | ||
with: | ||
node-version: 'lts/*' | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@k3nsei' | ||
|
||
- name: Build library | ||
run: npm run build:lib | ||
|
||
- name: Copy license and readme files | ||
run: | | ||
cp LICENSE dist/ng-in-viewport/LICENSE | ||
cp README.md dist/ng-in-viewport/README.md | ||
- name: Publish library package | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
cd dist/ng-in-viewport | ||
npm publish --registry="https://npm.pkg.github.com" --scope="@k3nsei" |
04b8065
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ng-in-viewport – ./
ng-in-viewport-k3nsei.vercel.app
ng-in-viewport.vercel.app
ng-in-viewport-git-develop-k3nsei.vercel.app