Skip to content

Commit

Permalink
Do we have a token?
Browse files Browse the repository at this point in the history
  • Loading branch information
putvande committed Aug 2, 2024
1 parent c037322 commit 8bfce7f
Showing 1 changed file with 32 additions and 24 deletions.
56 changes: 32 additions & 24 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,35 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Run build
run: npm run build

- name: Publish
if: github.ref == 'refs/heads/master'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Checkout
# uses: actions/checkout@v3
# with:
# persist-credentials: false

# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version-file: .nvmrc

- name: test
run: |
if [[ -z "${{ secrets.NPM_TOKEN }}" ]]; then
echo "NPM_TOKEN is not set"
exit 1
else
echo "NPM_TOKEN is set"
fi
# - name: Install dependencies
# run: npm ci

# - name: Run tests
# run: npm test

# - name: Run build
# run: npm run build

# - name: Publish
# if: github.ref == 'refs/heads/master'
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8bfce7f

Please sign in to comment.