build(deps-dev): bump express from 4.19.2 to 4.21.0 (#342) #24
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: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
permissions: | |
contents: write | |
jobs: | |
test: | |
uses: ./.github/workflows/end-to-end-tests.yml | |
secrets: inherit | |
publish: | |
runs-on: ubuntu-20.04 | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Stop early if the tag fails any validation | |
run: sh validate-version.sh ${{ github.ref_name }} | |
# 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 | |
- name: Build and bundle | |
run: | | |
npx nx build web-component | |
npx nx bundle web-component | |
npx nx build ngx-web-component | |
- name: Fix the relative URLs in the READMEs to work on npmjs | |
run: | | |
sed -i 's/(\.\.\/web-component)/(web-component)/g' dist/packages/ngx-web-component/README.md | |
sed -i 's/(test-data\//(https:\/\/github.com\/ReadAlongs\/Studio-Web\/blob\/${{ github.ref_name }}\/packages\/web-component\/test-data\//g' dist/packages/web-component/README.md | |
- name: Publish web-component to npmjs | |
run: | | |
cd dist/packages/web-component && npm publish --access=public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish ngx-web-component to npmjs | |
run: | | |
cd dist/packages/ngx-web-component && npm publish --access=public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Update CHANGELOG | |
id: changelog | |
uses: requarks/changelog-action@v1 | |
with: | |
token: ${{ github.token }} | |
tag: ${{ github.ref_name }} | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag: ${{ github.ref_name }} | |
name: Release ${{ github.ref_name }} | |
body: ${{ steps.changelog.outputs.changes }} | |
deploy: | |
needs: publish | |
uses: ./.github/workflows/deploy.yml | |
secrets: inherit |