/
githubmirror
/
immutable-js
Обзор
Документация
Войти
/
githubmirror
/
immutable-js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/release.yml
44 строки
1 KB
dependabot[bot]
ci(deps): bump the github-actions group with 3 updates
04 авг 2026, 01:12
Не верифицирован
04 авг 2026, 01:12
99d7838
Код
Авторство
О чём код?
name: Release on: workflow_dispatch: ~ release: types: [published] permissions: id-token: write # Required for OIDC / npm contents: read jobs: build: name: 'Build & Publish to NPM' permissions: contents: read id-token: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: actions/setup-node@v7 with: node-version: '24' registry-url: 'https://registry.npmjs.org' - uses: actions/cache@v6 with: path: ~/.npm key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.OS }}-node- # Ensure npm 11.5.1 or later is installed - name: Update npm run: npm install -g npm@latest - run: npm ci - run: npm run build - name: 'Determine NPM tag: latest or next depending if we are on a prerelease or not (version with hyphen should be a prerelease)' id: npm_tag run: | VERSION=$(node -p "require('./package.json').version") if [[ $VERSION == *-* ]]; then echo "TAG=next" >> "$GITHUB_OUTPUT" else echo "TAG=latest" >> "$GITHUB_OUTPUT" fi - run: cd npm && npm publish --tag ${{ steps.npm_tag.outputs.TAG }}