Bump @types/node from 20.12.7 to 20.12.8 (#511) #315
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
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
name: Publish | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
- name: Set wrangler version | |
id: wrangler | |
run: echo "version=$(jq -r .devDependencies.wrangler package.json | cut -c2-)" >> "$GITHUB_OUTPUT" | |
- name: Install packages | |
run: yarn install | |
- name: Set environment | |
id: environment | |
run: | | |
environment="dev" | |
if [[ "${{ github.event_name }}" == "release" ]]; then | |
environment="production" | |
fi | |
echo "environment=${environment}" >> "$GITHUB_OUTPUT" | |
- name: Publish ${{ steps.environment.outputs.environment }} worker | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_WORKER_API_TOKEN }} | |
wranglerVersion: ${{ steps.wrangler.outputs.version }} | |
command: deploy --env=${{ steps.environment.outputs.environment }} |