Skip to content

Commit

Permalink
Moves the npm token around
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanformio committed Mar 22, 2024
1 parent 8c9f7fd commit 3c232c0
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3c232c0

Please sign in to comment.