Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIO-7507: Publish dev tag to npm #1060

Merged
merged 29 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2efb983
init test
ryanformio Mar 20, 2024
fab3493
Run publish
ryanformio Mar 20, 2024
59c1672
View unclean directory
ryanformio Mar 20, 2024
8098c84
Adding --no-git-tag-version to npm version
ryanformio Mar 20, 2024
eadad3a
Forgot to uncomment
ryanformio Mar 20, 2024
2e45ec8
Not sure how these got backwards
ryanformio Mar 20, 2024
edbc24e
Seems the reason is due to the existence of publish in package.json
ryanformio Mar 20, 2024
4598086
Add run
ryanformio Mar 20, 2024
e2d3f52
restore build cache and run publish
ryanformio Mar 20, 2024
b2f21b7
Change directory where git user and npmrc occur
ryanformio Mar 20, 2024
72ce0cd
test
ryanformio Mar 22, 2024
0378d72
Publish Dry run
ryanformio Mar 22, 2024
7fccf00
View git status for unclean directory
ryanformio Mar 22, 2024
8c9f7fd
Navigate to the dir and publish
ryanformio Mar 22, 2024
3c232c0
Moves the npm token around
ryanformio Mar 22, 2024
3b0b971
Getting unclean dir
ryanformio Mar 22, 2024
8de3677
try adding .npmrc to ignore
ryanformio Mar 22, 2024
f7c9795
Adds --no-git-tag-version so will by pass the modifications to .npmrc
ryanformio Mar 22, 2024
48ab78d
Try from cache again
ryanformio Mar 22, 2024
b272e25
seems like it will fail without no-git-tag but still push
ryanformio Mar 22, 2024
f6448ba
Its not publishing from the correct directory it seems
ryanformio Mar 22, 2024
e61e78c
directory test
ryanformio Mar 22, 2024
59f26ea
Having issues getting it to deploy to correct directory
ryanformio Mar 22, 2024
f605790
switch dirs before creating tag
ryanformio Mar 22, 2024
daa6205
Adds working directory to steps
ryanformio Mar 22, 2024
57ea833
Last minute clean-up
ryanformio Mar 22, 2024
dd7e31e
Merge branch 'master' into FIO-7507-publish-dev-tag-to-npm
ryanformio Apr 3, 2024
e62b35a
Updates with 7848 and uses yarn publish
ryanformio Apr 3, 2024
8982fec
Updates for FIO-8237, and addresses PR comments in formioreport.compo…
ryanformio May 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moves the npm token around
ryanformio committed Mar 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 3c232c0d67143449eb8d936f9bbc8f97d4ba8ac3
33 changes: 14 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -70,14 +70,6 @@ jobs:
- name: Show build directory contents
run: |
ls -R ./dist/angular-formio

- name: Cache build directory
uses: actions/cache@v3
with:
path: dist
key: ${{ runner.os }}-dist-${{ hashFiles('dist.tgz') }}
restore-keys: |
${{ runner.os }}-dist-

#####################################################################
## Test (Trys to launch a chrome browser, will need additional work)
@@ -113,15 +105,6 @@ jobs:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Configure Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "pkgbot"

- name: Add npm token to .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
@@ -140,7 +123,11 @@ jobs:
- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build
cmd: build:prod

- name: Show dist directory contents
run: |
ls -R ./dist/angular-formio

- name: Prepare version for publish
id: prep
@@ -164,9 +151,17 @@ jobs:
- name: Echo version to Publish
run: |
echo "Version to publish: $NEW_VERSION"
git status
cd ./dist/angular-formio

- name: Configure Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "pkgbot"

- name: Add npm token to .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: Publish to npm
run: |
npm version $NEW_VERSION