Skip to content

Commit 754bf2b

Browse files
committed
test(publish): reduced workflow to test readme rewriting
1 parent 4b0dbff commit 754bf2b

File tree

1 file changed

+8
-42
lines changed

1 file changed

+8
-42
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,22 @@
33
# To create a release, please follow the steps documented in the "Build &
44
# Publish" section of the README.md file.
55

6-
name: Upload Package
6+
name: Test Upload Package
77
on:
88
push:
99
tags:
10-
- v[0-9]+.[0-9]+.[0-9]+
11-
12-
permissions:
13-
contents: write
10+
- test[0-9]+.[0-9]+.[0-9]+
1411

1512
jobs:
16-
test:
17-
uses: ./.github/workflows/end-to-end-tests.yml
18-
secrets: inherit
19-
2013
publish:
2114
runs-on: ubuntu-20.04
22-
needs: test
2315
steps:
2416
- uses: actions/checkout@v4
2517
- name: Stop early if the tag fails any validation
26-
run: sh validate-version.sh ${{ github.ref_name }}
27-
# Setup .npmrc file to publish to npm
18+
run: sh validate-version.sh ${{ github.ref_name }} || true
2819
- uses: actions/setup-node@v4
2920
with:
3021
node-version: 20
31-
registry-url: "https://registry.npmjs.org"
32-
scope: "@readalongs"
3322
- run: npm install
3423
- name: Build and bundle
3524
run: |
@@ -40,32 +29,9 @@ jobs:
4029
run: |
4130
sed -i 's/(\.\.\/web-component)/(web-component)/g' dist/packages/ngx-web-component/README.md
4231
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
43-
- name: Publish web-component to npmjs
44-
run: |
45-
cd dist/packages/web-component && npm publish --access=public
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
48-
- name: Publish ngx-web-component to npmjs
32+
- name: show the updated readmes
4933
run: |
50-
cd dist/packages/ngx-web-component && npm publish --access=public
51-
env:
52-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53-
- name: Update CHANGELOG
54-
id: changelog
55-
uses: requarks/changelog-action@v1
56-
with:
57-
token: ${{ github.token }}
58-
tag: ${{ github.ref_name }}
59-
- name: Create a GitHub release
60-
uses: ncipollo/release-action@v1
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
with:
64-
tag: ${{ github.ref_name }}
65-
name: Release ${{ github.ref_name }}
66-
body: ${{ steps.changelog.outputs.changes }}
67-
68-
deploy:
69-
needs: publish
70-
uses: ./.github/workflows/deploy.yml
71-
secrets: inherit
34+
echo dist/packages/web-component/README.md
35+
cat dist/packages/web-component/README.md
36+
echo dist/packages/ngx-web-component/README.md
37+
cat dist/packages/ngx-web-component/README.md

0 commit comments

Comments
 (0)