Skip to content

sequential foreachSqsRecord + Readme #20

sequential foreachSqsRecord + Readme

sequential foreachSqsRecord + Readme #20

Workflow file for this run

# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Publish
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: 'actions/checkout@v3.1.0'
with:
ref: master
- name: Node setup
uses: 'actions/setup-node@v3.5.1'
with:
node-version: 16
registry-url: 'https://registry.npmjs.org/'
- name: Git configuration
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "GitHub Actions"
- name: Installation
run: 'npm ci'
- name: Build
run: 'npm run build'
- name: Determine new version
run: |
echo "$GITHUB_REF"
IFS='/' read -ra PARTS <<< "$GITHUB_REF"
NEW_VERSION="${PARTS[2]}"
echo "$NEW_VERSION"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Bump version
run: |
npm version ${{ env.NEW_VERSION }}
git status
- name: Commit and push
run: |
git status
git push
- name: Publish
run: 'npm publish'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}