Upload Package #13
Workflow file for this run
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
# This workflows will build, test and upload the package to npm when a release | |
# is created. | |
# To create a release, please follow the steps documented in the "Build & | |
# Publish" section of the README.md file. | |
name: Upload Package | |
on: | |
push: | |
tags: | |
- test[0-9]+.[0-9]+.[0-9]+ | |
jobs: | |
test: | |
uses: ./.github/workflows/end-to-end-tests.yml | |
secrets: inherit | |
build: | |
runs-on: ubuntu-20.04 | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: fregante/setup-git-user@v2 | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: "https://registry.npmjs.org" | |
scope: "@readalongs" | |
- run: npm install | |
- run: | | |
npx nx build web-component | |
npx nx bundle web-component | |
npx nx build ngx-web-component | |
- run: | | |
# cd dist/packages/web-component && npm publish --access=public | |
cd dist/packages/web-component && npm pack | |
- run: | | |
# cd dist/packages/ngx-web-component && npm publish --access=public | |
cd dist/packages/ngx-web-component && npm pack | |
- name: Update CHANGELOG | |
id: changelog | |
uses: requarks/changelog-action@v1 | |
with: | |
token: ${{ github.token }} | |
tag: ${{ github.ref_name }} | |
- name: show CHANGELOG | |
env: | |
CHANGELOG: ${{ steps.changelog.outputs.changes }} | |
run: | | |
echo ${{ github.ref_name }} | |
echo "$CHANGELOG" | |
- name: show build and pack artifacts | |
run: | | |
find dist -type f -ls | |
ls -l packages/*/*.tgz |